Eidolon
Public Member Functions | Public Attributes | List of all members
ModifierBufferGenerator Class Reference

Inherits object.

Collaboration diagram for ModifierBufferGenerator:
Collaboration graph

Public Member Functions

def __init__ (self, mods)
 
def addModifier (self, mod)
 
def removeModifier (self, mod)
 
def applyMeshMod (self, nodes, norms, inds, colors, uvs, trans=transform())
 
def applyDatasetMod (self, rep, dataset, nodecolors, indices, extinds, reprtype)
 

Public Attributes

 mods
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mods 
)

Member Function Documentation

◆ addModifier()

def addModifier (   self,
  mod 
)

◆ applyDatasetMod()

def applyDatasetMod (   self,
  rep,
  dataset,
  nodecolors,
  indices,
  extinds,
  reprtype 
)

◆ applyMeshMod()

def applyMeshMod (   self,
  nodes,
  norms,
  inds,
  colors,
  uvs,
  trans = transform() 
)
Applies modifiers to the mesh defined by the supplied vec3or index tuple lists and transform. This method is
for meshes not defined in datasets. The lists `nodes', `norms', `colors', and `uvs' define the components of
each node for this mesh while `inds' defines the topology as a list of element index tuples. The method
`applyMeshMod' is called on each modifier with arguments (nodes,norms,inds,colors,uvs,trans). The method must
return a tuple containing (nodes,norms,inds,colors,uvs) which may be the same lists modified or new ones. Once
all modifiers have been applied a vertex and an index buffer are created from the lists and returned.

◆ removeModifier()

def removeModifier (   self,
  mod 
)

Member Data Documentation

◆ mods

mods

The documentation for this class was generated from the following file: