EggPolysetMaker

from panda3d.egg import EggPolysetMaker
class EggPolysetMaker

Bases: EggBinMaker

A specialization on EggBinMaker for making polysets that share the same basic rendering characteristic. This really just defines the example functions described in the leading comment to EggBinMaker.

It makes some common assumptions about how polysets should be grouped; if these are not sufficient, you can always rederive your own further specialization of this class.

Inheritance diagram

Inheritance diagram of EggPolysetMaker

BNNone = 0
BNPolyset = 1
BN_none = 0
BN_polyset = 1
PBface = 512
PHasMaterial = 4
PHasPolyColor = 16
PHasPolyNormal = 64
PHasTexture = 1
PHasVertexColor = 256
PHasVertexNormal = 128
PMaterial = 8
PPolyColor = 32
PTexture = 2
P_bface = 512
P_has_material = 4
P_has_poly_color = 16
P_has_poly_normal = 64
P_has_texture = 1
P_has_vertex_color = 256
P_has_vertex_normal = 128
P_material = 8
P_poly_color = 32
P_texture = 2
__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()

setProperties()

C++ Interface: set_properties(const EggPolysetMaker self, int properties)

/**
  • Sets the set of properties that determines which polygons are allowed to be

  • grouped together into a single polyset. This is the bitwise ‘or’ of all

  • the properties that matter. If this is 0, all polygons (within a given

  • group) will be lumped into a common polyset regardless of their properties.

*/

set_properties()

C++ Interface: set_properties(const EggPolysetMaker self, int properties)

/**
  • Sets the set of properties that determines which polygons are allowed to be

  • grouped together into a single polyset. This is the bitwise ‘or’ of all

  • the properties that matter. If this is 0, all polygons (within a given

  • group) will be lumped into a common polyset regardless of their properties.

*/