摘要 |
A method for clipping two and three dimensional graphic primitives for use in a computer graphics workstation. During the first clipping stage, the system removes all graphic primitives which lie outside an arbitrary clipping volume or window that is an enlargement of the desired viewing volume or window. This clipping volume (window) is then projected and mapped onto a virtual viewport which is larger than the real viewport. After this mapping occurs, rendering effects (such as line styles, line width, pattern fill, hatch fill, etc.) are applied to the primitive. A subsequent stage of clipping is then applied to clip the virtual viewport to the real viewport which is the user's visible area. Use of the clipping volume (window) during the first stage of clipping makes it simpler to transform geometric primitives which are partially visible to the viewer, and gives visible primitives a richer set of invariant geometric properties so that their rendering effects may be more easily and correctly carried out.
|