摘要 |
Disclosed is a tangible computer-readable medium encoded with an image-based clipping computer program. This image-based clipping computer program when executed by one or more processors should cause the processor(s) to generate a clipped pattern. To generate this clipped pattern, the processors preferably select a pattern using coordinates from an original shape; initialize a clipped pattern to the selected shapes pattern; calculate a first and second pixel where an original triangle intersects the bounds of a view volume; calculate a cutting edge which runs through the first pixel and the second pixel; select a clipping pattern(s) according to the relative position of cutting edge and the bounding box and perform a logical AND operation with the clipped shape and the selected clipping pattern(s).
|