A map of vertex indices and the weights (values) associated to them.
Inherits :
DAZ Script |
---|
DzWeightMap () |
DAZ Script | |
---|---|
void | clearAffectedWeights () |
void | detach () |
void | empty () |
Number | getFloatWeight ( Number idx ) |
Number | getNumAffected () |
Number | getNumWeights () |
DzFloatProperty | getStrengthControl () |
Boolean | hasNonZeroWeight () |
Boolean | isEmpty () |
Boolean | isLocked () |
Boolean | isPersistent () |
void | merge ( DzWeightMap map ) |
void | setFloatWeight ( Number idx, Number weight ) |
void | setLocked ( Boolean onOff ) |
void | setNumWeights ( Number nWeights, Boolean keepExisting=false ) |
void | setPersistent ( Boolean onOff ) |
Deprecated | |
DzFloatProperty | getStrengthController () |
void | weightValuesChanged () |
TODO: Add detailed description.
void : clearAffectedWeights()
Clears the values of affected weights in this map.
void : detach()
After making a shallow copy with the copy() method, this method can be used to “detach” the shallow copy, making it a deep copy that no longer shares its weight map values.
void : empty()
Empties this weight map and frees the data for the vertex weight array.
Number : getFloatWeight( Number idx )
Parameter(s):
Return Value:
Number : getNumAffected()
Return Value:
Number : getNumWeights()
Return Value:
DzFloatProperty : getStrengthControl()
Return Value:
Since:
Return Value:
true
if this weight map contains any non-zero weights, otherwise false
.Return Value:
true
if this weight map has no data, otherwise false
.Return Value:
true
if the weight values in this map should be considered non-editable when normalization examines this map.Boolean : isPersistent()
Return Value:
true
if the weight values need to be stored in the file, otherwise false
.void : merge( DzWeightMap map )
Merges the given weight map with this weight map.
Parameter(s):
Merges the given weight map with this weight map.
Parameter(s):
void : setFloatWeight( Number idx, Number weight )
Parameter(s):
See Also:
Since:
void : setLocked( Boolean onOff )
Sets whether or not the weight values should be considered locked when normalization examines this map.
Parameter(s):
true
, the weight values should be considered non-editable when normalization examines this map.void : setNumWeights( Number nWeights, Boolean keepExisting=false )
Sets the number of weights for the map, and resizes the data array.
Parameter(s):
void : setPersistent( Boolean onOff )
Sets whether or not the weight values need to be stored in the file.
Parameter(s):
true
, the weight values need to be stored in the file.DzFloatProperty : getStrengthController()
Deprecated
Exists only to keep old code working. Do not use in new code. Use getStrengthControl() instead.
void : weightValuesChanged()
Signature:“weightValuesChanged()”
Emitted when the weights in this map have changed.