17INLINE EggCompositePrimitive::
18EggCompositePrimitive(
const std::string &name) :
EggPrimitive(name) {
24INLINE EggCompositePrimitive::
33 EggPrimitive::operator = (copy);
43 return _components.size();
51 nassertr(i < _components.size(),
nullptr);
52 return _components[i];
60 nassertr(i < _components.size(),
nullptr);
61 return _components[i];
69 nassertv(i < _components.size());
83 return do_triangulate(container);
The set of attributes that may be applied to vertices as well as polygons, such as surface normal and...
The base class for primitives such as triangle strips and triangle fans, which include several compon...
bool triangulate_into(EggGroupNode *container) const
Subdivides the composite primitive into triangles and adds those triangles to the indicated container...
get_num_components
Returns the number of individual component triangles within the composite.
set_component
Changes the attributes for the nth component triangle.
get_component
Returns the attributes for the nth component triangle.
A base class for nodes in the hierarchy that are not leaf nodes.
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...