class csPolygonInt This class indicates what methods a class should use in order to be a 'polygon'
| | Classify (csPolygonInt* poly) Classify a polygon with regards to this one |
| | GetPolyPlane () Return the plane of this polygon |
| | GetType () Return some type-id which BSP visitors can use for their own purpose |
| | SamePlane (csPolygonInt* p) Return true if this polygon and the given polygon are on the same plane |
| | SplitWithPlane (csPolygonInt** front, csPolygonInt** back, csPlane& plane) Split this polygon with the given plane (A,B,C,D) and return the two resulting new polygons in 'front' and 'back' |
This class indicates what methods a class should use in order to be a 'polygon'. It acts as an 'interface' in JAVA terminology. There is no data in this class and no method implementations.The BSP tree implementation is an example of a class that uses this csPolygonInt interface. The consequence of this is that the BSP tree can be used for several sorts of polygons (even 3D or 2D ones).
This class exports methods in three categories:
- Polygon manipulation (clone, set_parent, get_parent)
- Vertex manipulation (reset, add_vertex, finish, get_num_vertices)
- Plane functions (classify, same_plane, get_poly_plane, split_with_plane)
virtual int Classify(csPolygonInt* poly)
virtual void SplitWithPlane(csPolygonInt** front, csPolygonInt** back, csPlane& plane)
virtual bool SamePlane(csPolygonInt* p)
virtual int GetType()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de