A container for the discrete vertex displacement values of a morph.
Inherits :
DAZ Script | |
---|---|
DzMorphDeltas | calculateDeltas ( DzVertexMesh srcGeom, DzVertexMesh tgtGeom, Number tolerance=0.001 ) |
DAZ Script |
---|
DzMorphDeltas () |
DAZ Script | |
---|---|
Number | addDelta ( Number vertIdx, DzVec3 delta, Boolean checkForDuplicates=true ) |
Number | addDelta ( Number vertIdx, Number deltaX, Number deltaY, Number deltaZ, Boolean checkForDuplicates=true ) |
DzMorphDeltas | copyDeltas () |
void | copyDeltasTo ( DzMorphDeltas deltas ) |
Number | getDeltaIndex ( Number i ) |
DzVec3 | getDeltaVec ( Number i ) |
Number | getNumDeltas () |
Number | getTargetVertexCount () |
Number | getVertexDeltaIndex ( Number vertIdx ) |
Boolean | hasDeltas () |
Boolean | loadDeltas () |
void | preSize ( Number nDeltas ) |
void | removeAllDeltas () |
void | removeDelta ( Number deltaIdx ) |
void | removeDuplicateDeltas () |
DzMorphDeltas | removeIgnoredDeltas () |
void | removeVertex ( Number vertIdx ) |
DzError | setDelta ( Number index, DzVec3 delta ) |
void | setTargetVertexCount ( Number vertCount ) |
void | unLoadDeltas () |
Deprecated | |
void | setVertCount ( Number vertCount ) |
Number | getVertCount () |
void | deltaListChanged () |
void | deltaListLoaded () |
void | deltaValueChanged () |
A container for a discrete list of three dimensional position changes (deltas) to the vertices of a mesh, for a morph.
See Also:
DzMorphDeltas : calculateDeltas( DzVertexMesh srcGeom, DzVertexMesh tgtGeom, Number tolerance=0.001 )
Calculates a delta set from two meshes.
Parameter(s):
srcGeom
and the corresponding vertex in tgtGeom
to be considered; lower limit is 1e-5.Return Value:
srcGeom
into tgtGeom
. If a delta set cannot be created, or is empty, this returns null.Since:
Number : addDelta( Number vertIdx, DzVec3 delta, Boolean checkForDuplicates=true )
Add a morph delta.
Parameter(s):
true
, the list of deltas will be checked for any previous deltas assigned to the vertex before adding the delta. Otherwise, it is assumed no deltas have been added for the specified vertex.Return Value:
Number : addDelta( Number vertIdx, Number deltaX, Number deltaY, Number deltaZ, Boolean checkForDuplicates=true )
Add a morph delta.
Parameter(s):
Return Value:
DzMorphDeltas : copyDeltas()
Return Value:
void : copyDeltasTo( DzMorphDeltas deltas )
Copies (deep) this morph deltas to a specified morph deltas.
Parameter(s):
Number : getDeltaIndex( Number i )
Parameter(s):
Return Value:
DzVec3 : getDeltaVec( Number i )
Parameter(s):
Return Value:
Number : getNumDeltas()
Return Value:
Number : getTargetVertexCount()
Return Value:
Since:
Number : getVertexDeltaIndex( Number vertIdx )
Parameter(s):
Return Value:
Return Value:
true
if there are any deltas that exist in this set. false
if deltas have not been loaded from file, or otherwise assigned, yet.Boolean : loadDeltas()
Loads the list of delta values from file if it has not already been loaded.
Return Value:
true
if the deltas were loaded successfully, otherwise false
.See Also:
void : preSize( Number nDeltas )
Pre-sizes the deltas list.
Parameter(s):
void : removeAllDeltas()
Clears the list of delta values.
See Also:
void : removeDelta( Number deltaIdx )
Remove the specified delta.
Parameter(s):
void : removeDuplicateDeltas()
Removes any duplicate deltas that are in the array. Only the earliest instance in the delta array is kept.
Attention:
DzMorphDeltas : removeIgnoredDeltas()
Return Value:
void : removeVertex( Number vertIdx )
Removes deltas value for a specified vertex.
Parameter(s):
DzError : setDelta( Number index, DzVec3 delta )
Sets the value for a delta in the delta list.
Parameter(s):
void : setTargetVertexCount( Number vertCount )
Sets the vertex count in the target mesh that this set of delta values applies to.
Parameter(s):
Since:
void : unLoadDeltas()
Unloads the list of delta values (if loaded).
See Also:
void : setVertCount( Number vertCount )
Deprecated
Exists only to keep old code working. Do not use in new code. Use setTargetVertexCount() instead.
Number : getVertCount()
Deprecated
Exists only to keep old code working. Do not use in new code. Use getTargetVertexCount() instead.
void : deltaListChanged()
Signature:“deltaListChanged()”
Emitted when deltas are added to or removed from the list
void : deltaListLoaded()
Signature:“deltaListLoaded()”
Emitted when deltas are successfully loaded from file
Since:
void : deltaValueChanged()
Signature:“deltaValueChanged()”
Emitted when one or more delta values have been changed