18 EggPolygon(
const std::string &name) :
EggPrimitive(name) {
33 EggPrimitive::operator = (copy);
69 return copy->triangulate_poly(container, convex_also);
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
A base class for nodes in the hierarchy that are not leaf nodes.
bool triangulate_into(EggGroupNode *container, bool convex_also) const
Subdivides the polygon into triangles and adds each one to the indicated container.
bool recompute_polygon_normal(CoordinateSystem cs=CS_default)
Recalculates the normal according to the order of the vertices, and sets it.
bool calculate_normal(LNormald &result, CoordinateSystem cs=CS_default) const
Calculates the true polygon normal–the vector pointing out of the front of the polygon–based on the v...