Collects together unrelated EggPrimitives, determines their edge connectivity, and generates a set of EggTriangleStrips that represent the same geometry. More...
#include "eggMesher.h"
Public Member Functions | |
void | mesh (EggGroupNode *group, bool flat_shaded) |
Accepts an EggGroupNode, which contains a set of EggPrimitives–typically, triangles and quads–as children. More... | |
void | write (std::ostream &out) const |
Public Attributes | |
bool | _consider_fans |
bool | _retesselate_coplanar |
bool | _show_qsheets |
bool | _show_quads |
Friends | |
class | EggMesherFanMaker |
class | EggMesherStrip |
Collects together unrelated EggPrimitives, determines their edge connectivity, and generates a set of EggTriangleStrips that represent the same geometry.
Definition at line 33 of file eggMesher.h.
void EggMesher::mesh | ( | EggGroupNode * | group, |
bool | flat_shaded | ||
) |
Accepts an EggGroupNode, which contains a set of EggPrimitives–typically, triangles and quads–as children.
Removes these primitives and replaces them with (mostly) equivalent EggTriangleStrips and EggTriangleFans where possible.
If flat_shaded is true, then odd-length triangle strips, and triangle fans of any length, are not permitted (because these can't be rotated when required to move the colored vertex of each triangle to the first or last position).
Definition at line 49 of file eggMesher.cxx.
Referenced by EggGroupNode::mesh_triangles().