Panda3D
|
A connected strip of triangles. More...
#include "eggTriangleStrip.h"
Public Member Functions | |
EggTriangleStrip (const string &name="") | |
EggTriangleStrip (const EggTriangleStrip ©) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
EggTriangleStrip & | operator= (const EggTriangleStrip ©) |
virtual void | write (ostream &out, int indent_level) const |
Writes the triangle strip to the indicated output stream in Egg format. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual bool | do_triangulate (EggGroupNode *container) const |
Fills the container up with EggPolygons that represent the component triangles of this triangle strip. | |
virtual int | get_num_lead_vertices () const |
Returns the number of initial vertices that are not used in defining any component; the first component is defined by the (n + 1)th vertex, and then a new component at each vertex thereafter. |
A connected strip of triangles.
This does not normally appear in an egg file; it is typically generated as a result of meshing.
Definition at line 28 of file eggTriangleStrip.h.
bool EggTriangleStrip::do_triangulate | ( | EggGroupNode * | container | ) | const [protected, virtual] |
Fills the container up with EggPolygons that represent the component triangles of this triangle strip.
It is assumed that the EggTriangleStrip is not already a child of any other group when this function is called.
Returns true if the triangulation is successful, or false if there was some error (in which case the container may contain some partial triangulation).
Reimplemented from EggCompositePrimitive.
Definition at line 75 of file eggTriangleStrip.cxx.
References EggGroupNode::add_child(), EggPrimitive::copy_attributes(), EggAttributes::get_color(), and EggCompositePrimitive::get_component().
int EggTriangleStrip::get_num_lead_vertices | ( | ) | const [protected, virtual] |
Returns the number of initial vertices that are not used in defining any component; the first component is defined by the (n + 1)th vertex, and then a new component at each vertex thereafter.
Implements EggCompositePrimitive.
Definition at line 55 of file eggTriangleStrip.cxx.
void EggTriangleStrip::write | ( | ostream & | out, |
int | indent_level | ||
) | const [virtual] |
Writes the triangle strip to the indicated output stream in Egg format.
Implements EggPrimitive.
Definition at line 40 of file eggTriangleStrip.cxx.
References EggCompositePrimitive::write_body(), and EggNamedObject::write_header().