EggCompositePrimitive
from panda3d.egg import EggCompositePrimitive
- class EggCompositePrimitive
Bases:
EggPrimitive
The base class for primitives such as triangle strips and triangle fans, which include several component triangles, each of which might have its own color and/or normal.
Inheritance diagram
- __init__(*args, **kwargs)
- assign()
C++ Interface: assign(const EggCompositePrimitive self, const EggCompositePrimitive copy)
- /**
*/
- components
- getClassType()
C++ Interface: get_class_type()
- getComponent()
C++ Interface: get_component(const EggCompositePrimitive self, int i) get_component(EggCompositePrimitive self, int i)
- getComponents()
- getNumComponents()
C++ Interface: get_num_components(EggCompositePrimitive self)
- /**
Returns the number of individual component triangles within the composite.
Each one of these might have a different set of attributes.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_component()
C++ Interface: get_component(const EggCompositePrimitive self, int i) get_component(EggCompositePrimitive self, int i)
- get_components()
- get_num_components()
C++ Interface: get_num_components(EggCompositePrimitive self)
- /**
Returns the number of individual component triangles within the composite.
Each one of these might have a different set of attributes.
*/
- setComponent()
C++ Interface: set_component(const EggCompositePrimitive self, int i, const EggAttributes attrib)
- /**
Changes the attributes for the nth component triangle.
*/
- set_component()
C++ Interface: set_component(const EggCompositePrimitive self, int i, const EggAttributes attrib)
- /**
Changes the attributes for the nth component triangle.
*/
- triangulateInPlace()
C++ Interface: triangulate_in_place(const EggCompositePrimitive self)
- /**
Subdivides the composite primitive into triangles and adds those triangles
to the parent group node in place of the original primitive. Returns a
pointer to the original primitive, which is likely about to be destructed.
If convex_also is true, both concave and convex polygons will be subdivided
into triangles; otherwise, only concave polygons will be subdivided, and
convex polygons will be copied unchanged into the container.
*/
- triangulateInto()
C++ Interface: triangulate_into(EggCompositePrimitive self, EggGroupNode container)
- /**
Subdivides the composite primitive into triangles and adds those triangles
to the indicated container. Does not remove the primitive from its
existing parent or modify it in any way.
Returns true if the triangulation is successful, or false if there was some
error (in which case the container may contain some partial triangulation).
*/
- triangulate_in_place()
C++ Interface: triangulate_in_place(const EggCompositePrimitive self)
- /**
Subdivides the composite primitive into triangles and adds those triangles
to the parent group node in place of the original primitive. Returns a
pointer to the original primitive, which is likely about to be destructed.
If convex_also is true, both concave and convex polygons will be subdivided
into triangles; otherwise, only concave polygons will be subdivided, and
convex polygons will be copied unchanged into the container.
*/
- triangulate_into()
C++ Interface: triangulate_into(EggCompositePrimitive self, EggGroupNode container)
- /**
Subdivides the composite primitive into triangles and adds those triangles
to the indicated container. Does not remove the primitive from its
existing parent or modify it in any way.
Returns true if the triangulation is successful, or false if there was some
error (in which case the container may contain some partial triangulation).
*/