|
|
|
A single polygon.
More...
#include "eggPolygon.h"
List of all members.
Public Member Functions |
|
| EggPolygon (const string &name="") |
|
| EggPolygon (const EggPolygon ©) |
| bool | calculate_normal (Normald &result, CoordinateSystem cs=CS_default) const |
| | Calculates the true polygon normal--the vector pointing out of the front of the polygon--based on the vertices.
|
| virtual bool | cleanup () |
| | Cleans up modeling errors in whatever context this makes sense.
|
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
| bool | is_planar () const |
| | Returns true if all of the polygon's vertices lie within the same plane, false otherwise.
|
|
EggPolygon & | operator= (const EggPolygon ©) |
|
| PT (EggPolygon) triangulate_in_place(bool convex_also) |
| bool | recompute_polygon_normal (CoordinateSystem cs=CS_default) |
| | Recalculates the normal according to the order of the vertices, and sets it.
|
| bool | triangulate_into (EggGroupNode *container, bool convex_also) const |
| | Subdivides the polygon into triangles and adds each one to the indicated container.
|
| virtual void | write (ostream &out, int indent_level) const |
| | Writes the polygon to the indicated output stream in Egg format.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Detailed Description
A single polygon.
Definition at line 26 of file eggPolygon.h.
Member Function Documentation
| bool EggPolygon::calculate_normal |
( |
Normald & |
result, |
|
|
CoordinateSystem |
cs = CS_default |
|
) |
| const |
| bool EggPolygon::cleanup |
( |
| ) |
[virtual] |
| bool EggPolygon::is_planar |
( |
| ) |
const |
| bool EggPolygon::recompute_polygon_normal |
( |
CoordinateSystem |
cs = CS_default | ) |
[inline] |
| bool EggPolygon::triangulate_into |
( |
EggGroupNode * |
container, |
|
|
bool |
convex_also |
|
) |
| const [inline] |
Subdivides the polygon into triangles and adds each one to the indicated container.
If the polygon is already a triangle, adds an exact copy of the polygon to the container. Does not remove the polygon from its existing parent or modify it in any way.
Returns true if the triangulation is successful, or false if there was some error (in which case the container may contain some partial triangulation).
If convex_also is true, both concave and convex polygons will be subdivided into triangles; otherwise, only concave polygons will be subdivided, and convex polygons will be copied unchanged into the container.
Definition at line 84 of file eggPolygon.I.
Referenced by EggToDXFLayer::write_3d_face().
| void EggPolygon::write |
( |
ostream & |
out, |
|
|
int |
indent_level |
|
) |
| const [virtual] |
The documentation for this class was generated from the following files:
| | |