|
def | applyMeshMod (self, nodes, norms, inds, colors, uvs, trans=None) |
|
def | applyDatasetMod (self, rep, dataset, nodecolors, indices, selectedinds, reprtype, modinds) |
|
A default modifier object for ModifierBufferGenerator generator objects which does not change its input data.
◆ applyDatasetMod()
def applyDatasetMod |
( |
|
self, |
|
|
|
rep, |
|
|
|
dataset, |
|
|
|
nodecolors, |
|
|
|
indices, |
|
|
|
selectedinds, |
|
|
|
reprtype, |
|
|
|
modinds |
|
) |
| |
Modify a mesh by appending new nodes, node colors, and indices to the given matrices and dataset object. The
mesh belongs to the SceneObjectRepr object `rep' which contains the dataset object `dataset'. The matrix
`selectedinds' stores the indices of elements selected for visibility (which will initially be the external
indices matrix) and only these should be considered for modification. The output matrix `modinds' contains all
the indices for elements this modifier has chosen for visibility, so by default `selectedinds' is copied into it.
If `selectedinds' is None then all elements are visible.
◆ applyMeshMod()
def applyMeshMod |
( |
|
self, |
|
|
|
nodes, |
|
|
|
norms, |
|
|
|
inds, |
|
|
|
colors, |
|
|
|
uvs, |
|
|
|
trans = None |
|
) |
| |
Given the argument lists which define a mesh, modify the mesh by changing the list values or appending to the
lists. The return value must be the tuple (nodes,norms,inds,colors,uvs), in other words return a modified mesh.
The documentation for this class was generated from the following file: