Implements a map with one value per vertex, as well as supporting discontinuous values.
Inherits :
Inherited By : DzUVSet
DAZ Script |
---|
DzVertexMap ( MapType mapType=FLOAT_MAP ) |
DAZ Script | |
---|---|
void | addDctFloatValue ( Number vertexIdx, Number facetIdx, Number val ) |
void | addDctIntValue ( Number vertexIdx, Number facetIdx, Number val ) |
void | addDctPnt2Vec ( Number vertexIdx, Number facetIdx, DzVec3 val ) |
void | addDctPnt3Vec ( Number vertexIdx, Number facetIdx, DzVec3 val ) |
void | addDctShortValue ( Number vertexIdx, Number facetIdx, Number val ) |
void | clearDiscontinuousData () |
Number | getMapIndex ( Number vertexIdx, Number facetIdx ) |
Number | getNumDiscontinuousVerts () |
Number | getTargetVertexCount () |
void | preSizeDiscontinuous ( Number disconCount ) |
void | setDctIndex ( Number vertexIdx, Number facetIdx, Number mapIdx ) |
void | setTargetVertexCount ( Number vertCount ) |
void | squeezeDiscontinuous () |
void | updateDctValue ( Number oldIdx, Number newIdx, Number facetIdx ) |
This class maps an arbitrary numeric value to a vertex in the geometry. It should always contain at a minimum one value per vertex. It also supports discontinuous vertex maps - where different facets can have different values for the same vertex.
DzVertexMap( MapType mapType=FLOAT_MAP )
Creates a new vertex map of the given type.
Parameter(s):
void : addDctFloatValue( Number vertexIdx, Number facetIdx, Number val )
Adds a discontinuous data item to the map.
Parameter(s):
void : addDctIntValue( Number vertexIdx, Number facetIdx, Number val )
Adds a discontinuous data item to the map.
Parameter(s):
void : addDctPnt2Vec( Number vertexIdx, Number facetIdx, DzVec3 val )
Adds a discontinuous data item to the map.
Parameter(s):
void : addDctPnt3Vec( Number vertexIdx, Number facetIdx, DzVec3 val )
Adds a discontinuous data item to the map.
Parameter(s):
void : addDctShortValue( Number vertexIdx, Number facetIdx, Number val )
Adds a discontinuous data item to the map.
Parameter(s):
void : clearDiscontinuousData()
Removes all the discontinuous values from the map
Number : getMapIndex( Number vertexIdx, Number facetIdx )
Parameter(s):
Return Value:
Number : getNumDiscontinuousVerts()
Return Value:
Number : getTargetVertexCount()
Return Value:
Since:
void : preSizeDiscontinuous( Number disconCount )
Pre-sizes the discontinuous data for better memory performance.
void : setDctIndex( Number vertexIdx, Number facetIdx, Number mapIdx )
Sets the facet vertex to have discontinuous data which points to the given map index. This function will update existing data for the facet vertex, or will create new data if necessary.
It assumes that the valid value is already in the map.
Parameter(s):
void : setTargetVertexCount( Number vertCount )
Sets the vertex count of this vertex map.
Parameter(s):
Since:
void : squeezeDiscontinuous()
Reduces discontinuous data down to the minimum space required.
void : updateDctValue( Number oldIdx, Number newIdx, Number facetIdx )
Updates a discontinuous value for a given facet and oldIdx. This does not remove any values from the map, it may add a new discontinuous value if the newIdx and oldIdx have different map values.