17 INLINE EggCompositePrimitive::
18 EggCompositePrimitive(
const std::string &name) :
EggPrimitive(name) {
24 INLINE EggCompositePrimitive::
33 EggPrimitive::operator = (copy);
41 INLINE
size_t EggCompositePrimitive::
42 get_num_components()
const {
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);
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.
get_component
Returns the attributes for the nth component triangle.
The set of attributes that may be applied to vertices as well as polygons, such as surface normal and...
bool triangulate_into(EggGroupNode *container) const
Subdivides the composite primitive into triangles and adds those triangles to the indicated container...
set_component
Changes the attributes for the nth component triangle.