21 INLINE EggCompositePrimitive::
22 EggCompositePrimitive(
const string &name) :
EggPrimitive(name) {
30 INLINE EggCompositePrimitive::
41 EggPrimitive::operator = (copy);
54 return _components.size();
65 nassertr(i >= 0 && i < (
int)_components.size(), NULL);
66 return _components[i];
77 nassertr(i >= 0 && i < (
int)_components.size(), NULL);
78 return _components[i];
89 nassertv(i >= 0 && i < (
int)_components.size());
107 return do_triangulate(container);
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
The base class for primitives such as triangle strips and triangle fans, which include several compon...
A base class for nodes in the hierarchy that are not leaf nodes.
The set of attributes that may be applied to vertices as well as polygons, such as surface normal and...
const EggAttributes * get_component(int i) const
Returns the attributes for the nth component triangle.
void set_component(int i, const EggAttributes *attrib)
Changes the attributes for the nth component triangle.
bool triangulate_into(EggGroupNode *container) const
Subdivides the composite primitive into triangles and adds those triangles to the indicated container...
int get_num_components() const
Returns the number of individual component triangles within the composite.