A sculpt layer stores offsets (deltas) to the vertex positions
of a mesh. When the layer is visible, the offsets are added to the
mesh (scaled according to the transparency factor). Sculpt layers
also support Masking, where each vertex in the sculpt layer also
has a mask value, which it is multiplied by. This allows the
content of the layer to be attenuated locally (using the mask) or
globally (using the transparency value) with no loss of data.
Sculpt layers only keep offset information for those vertices
that have actually changed. For that reason, the index of a vertex
within a sculpt layer is not the same as the index of a vertex
within the model.
|
Public Member Functions
|
virtual const mudbox::ClassDesc
* |
RuntimeClass (void)
const |
virtual void |
SetName (const
QString &sName) |
|
Set the name of the layer.
|
virtual QString |
Name (void)
const |
|
Gets the name of the layer.
|
virtual bool |
Visible () const |
|
Gets the visibility of the layer.
|
virtual void |
SetVisible (bool
bVisible) |
|
Sets the visibility of the layer.
|
virtual void |
SetTransparency
(float fTransparency) |
|
Sets the transparency of the layer.
|
virtual float |
Transparency (void)
const |
|
Returns the current transparency of the
layer. 0 is fully transparent, 1 is opaque.
|
virtual unsigned int |
VertexIndex (unsigned
int iVertexIndex, bool bCreate=true) |
|
Returns the index of a vertex in a sculpt
layer.
|
virtual void |
SetVertexCount
(unsigned int iVertexCount) |
|
Set the number of vertices in the layer.
|
virtual unsigned int |
VertexCount ()
const |
|
Returns the number of vertex deltas in this
layer.
|
virtual unsigned int |
MeshVertexIndex
(unsigned int iLayerVertexIndex) const |
|
Returns the mesh's vertex index for the
corresponding layer vertex index.
|
virtual void |
SetVertexData
(unsigned int iVertexLayerIndex, unsigned int iGlobalVertexIndex,
float fMask) |
|
Set the mask value belonging to a vertex in
the layer.
|
virtual Vector |
SetVertexDelta
(unsigned int iVertexLayerIndex, unsigned int iLocalVertexIndex,
const Vector
&vDelta, bool bUpdate=true) |
|
Set the delta position stored for a vertex
in the layer.
|
virtual float |
VertexMask (unsigned
int iVertexLayerIndex) |
|
Returns the mask of a vertex in the layer.
|
virtual Vector |
VertexDelta
(unsigned int iVertexLayerIndex) |
|
Returns the current delta value associated
to a vertex.
|
virtual bool |
FinishChanges
() |
|
After creating new vertex deltas (by calling
VertexIndex with bCreate set to true) call this method to commit
the changes into the layer.
|
Static Public Member Functions
|
const mudbox::ClassDesc
* |
StaticClass
(void) |
mudbox::Node
* |
CreateInstances
(unsigned int iCount=1) |
mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData
mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData mudbox::LayerMeshData
mudbox::LayerMeshData