A SERVICE OF

logo

30
Chapter 2: Creating Geometries
Cosmo 3D-Derived csGeoSet Objects
Cosmo 3D provides the following csGeoSet collections. Each is a derivative of
csGeoSet.
csPointSetA collection of equally-sized points.
csLineSetA collection of lines of equal length.
csIndexedLineSetA set of indexed line strips.
csLineStripSetA collection of linestrips, also known as polylines.
csTriSetA collection of triangles.
csTriFanStripA collection of triangles that share a common vertex.
csTriStripSetA collection of triangle strips.
csPolySetA collection of convex, coplanar polygons.
csQuadSetA collection of quadrilaterals.
csIndexedFaceSetA polygon with faces that are indexed.
The following sections describe each of these primitive collections.
All of the classes contain virtual draw() and calcBound() methods. The draw() method
species how a csGeoSet object is drawn. The calcBound() method species how the
bounding box is computed. Other elds are specic to their geometries.
Using csPointSet
A csPointSet object contains a collection of equally-sized points. Point size is the
diameter of each point in pixels.
csPointSet contains the following elds:
void setSize(csFloat size);
csFloat getSize();
The setSize() and getSize() methods allow you to specify and nd out, respectively, the
diameter, in pixels, of all the points in a csPointSet object.