Panda3D
Public Member Functions | Public Attributes | Friends
EggMesher Class Reference

Collects together unrelated EggPrimitives, determines their edge connectivity, and generates a set of EggTriangleStrips that represent the same geometry. More...

#include "eggMesher.h"

List of all members.

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.
void write (ostream &out) const

Public Attributes

bool _consider_fans
bool _retesselate_coplanar
bool _show_qsheets
bool _show_quads

Friends

class EggMesherFanMaker
class EggMesherStrip

Detailed Description

Collects together unrelated EggPrimitives, determines their edge connectivity, and generates a set of EggTriangleStrips that represent the same geometry.

Definition at line 35 of file eggMesher.h.


Member Function Documentation

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 56 of file eggMesher.cxx.

References EggPrimitive::get_pool(), and EggGroupNode::steal_children().

Referenced by EggGroupNode::mesh_triangles().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations