1AnyToPL(3gv) AnyToPL(3gv)
2
3
4
6 AnyToPL - convert an arbitrary geom to a polylist (OFF file format)
7
9 #include "geomutil.h"
10
11 Geom *AnyToPL(Geom *, Transform);
12
13
15 AnyToPL() takes any geom as an arguement. It then returns a polylist
16 object which is geometrically identical to the original geom. The
17 transform argument is the transform applied to the entire object; it
18 should generally be set to TM_IDENTITY when AnyToPL() is first called.
19 Geometric objects are handled in the following ways:
20
21 Polylists: A transformed copy of the original is returned.
22
23 Bezier: The object is rediced if necessary, then handled as a mesh
24 object.
25
26 Quad: The object is directly transformed into a new polylist.
27
28 Mesh: The object is directly transformed into a new polylist, with
29 extra polygons added to do the wrapping if necessary.
30
31 Vect: The object is converted into a polylist containing a 2-gon for
32 every segment in the original vector object. The colors of the faces
33 are the same as the colors of the original object, but this generally
34 is irrelevant since the faces are not visible. Note that edge visibil‐
35 ity must be enabled for an object which has been converted from a vect
36 to a polylist to be visible in geomview.
37
38 List: AnyToPL() is called recursively and the resultant polylists are
39 combined using PLCombine(3). Inst: AnyToPL() is called recursively
40 with a new transformation matrix. The resultant polylists are combined
41 using PLCombine(3).
42
43 No effort is made to eliminate identical vertices. However, no extra‐
44 neous repeated vertexes should be created. The resultant polylist
45 should have the same number of vertexes as the original object.
46
48 AnyToPL() is part of the geomutil library; see geomutil(3) for informa‐
49 tion on how to link your program with this library.
50
52 plcombine(3), anytooff(1), geomview(1), geomutil(3)
53
55 Celeste Fowler
56 The Geometry Center
57
58
59
60Geometry Center June 15, 1992 AnyToPL(3gv)