EggAttributes
from panda3d.egg import EggAttributes
- class EggAttributes
Bases:
DTOOL_SUPER_BASE
The set of attributes that may be applied to vertices as well as polygons, such as surface normal and color.
This class cannot inherit from EggObject, because it causes problems at the EggPolygon level with multiple appearances of the EggObject base class. And making EggObject a virtual base class is just no fun.
Inheritance diagram
- __init__(*args, **kwargs)
- compareTo()
C++ Interface: compare_to(EggAttributes self, const EggAttributes other)
- /**
An ordering operator to compare two vertices for sorting order. This
imposes an arbitrary ordering useful to identify unique vertices.
*/
- compare_to()
C++ Interface: compare_to(EggAttributes self, const EggAttributes other)
- /**
An ordering operator to compare two vertices for sorting order. This
imposes an arbitrary ordering useful to identify unique vertices.
*/
- copyColor()
C++ Interface: copy_color(const EggAttributes self, const EggAttributes other)
- /**
Sets this color to be the same as the other’s, include morphs. If the
other has no color, this clears the color.
*/
- copyNormal()
C++ Interface: copy_normal(const EggAttributes self, const EggAttributes other)
- /**
Sets this normal to be the same as the other’s, include morphs. If the
other has no normal, this clears the normal.
*/
- copy_color()
C++ Interface: copy_color(const EggAttributes self, const EggAttributes other)
- /**
Sets this color to be the same as the other’s, include morphs. If the
other has no color, this clears the color.
*/
- copy_normal()
C++ Interface: copy_normal(const EggAttributes self, const EggAttributes other)
- /**
Sets this normal to be the same as the other’s, include morphs. If the
other has no normal, this clears the normal.
*/
- getClassType()
C++ Interface: get_class_type()
- getColor()
C++ Interface: get_color(EggAttributes self)
- /**
Returns the color set on this particular attribute. If there is no color
set, returns white.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_color()
C++ Interface: get_color(EggAttributes self)
- /**
Returns the color set on this particular attribute. If there is no color
set, returns white.
*/
- matchesColor()
C++ Interface: matches_color(EggAttributes self, const EggAttributes other)
- /**
Returns true if this color matches that of the other EggAttributes object,
include the morph list.
*/
- matchesNormal()
C++ Interface: matches_normal(EggAttributes self, const EggAttributes other)
- /**
Returns true if this normal matches that of the other EggAttributes object,
include the morph list.
*/
- matches_color()
C++ Interface: matches_color(EggAttributes self, const EggAttributes other)
- /**
Returns true if this color matches that of the other EggAttributes object,
include the morph list.
*/
- matches_normal()
C++ Interface: matches_normal(EggAttributes self, const EggAttributes other)
- /**
Returns true if this normal matches that of the other EggAttributes object,
include the morph list.
*/
- sortsLessThan()
C++ Interface: sorts_less_than(EggAttributes self, const EggAttributes other)
- /**
An ordering operator to compare two vertices for sorting order. This
imposes an arbitrary ordering useful to identify unique vertices.
*/
- sorts_less_than()
C++ Interface: sorts_less_than(EggAttributes self, const EggAttributes other)
- /**
An ordering operator to compare two vertices for sorting order. This
imposes an arbitrary ordering useful to identify unique vertices.
*/