The following methods provide access to the Vertex Data channels.
Topic Navigation: | |
---|---|
Vertex Selection Weight - Channel_1 |
Sets the number of vertex data channels available. The number of vertex data channels can be set from 0 to 100. The first ten channels are for internal use only.
If keep: is fals or not specified, the old channel data is discarded.
If true , the old channel data is retained after the resize.
channel 2 Vertex weights (for NURMS MeshSmooth)
channel 4 Cornering values for subdivision use
Returns the number of vertex data channels available as an <integer>.
Sets whether the specified vertex data channel is supported or not.
If <support> is true , and the channel support state is currently false , a new vertex data array of the same size as the number of vertices in the mesh is allocated.
If <support> is false , and the channel support state is currently true , the existing vertex data channel array is deallocated.
If <support> and the current channel support state are both the same, no action is performed.
setNumVDataChannels() is automatically called if the specified vertex data channel is not available. vdChannel index values are 1-based, with channels 1 and 2 being the Vertex Soft Selection and Vertex Weight channels.
Returns whether the specified vertex data channel is supported.
Returns the floating point data value associated with vertexvert_indexin vertex data channelvdChannelas a <float>.
Sets the floating point data value associated with vertexvert_indexin vertex data channelvdChannel.
Deallocates the existing vertex data channel array and turns off the vertex data channel support state.
Returns the Vertex Selection Weight data value for the specified vertex.
Sets the Vertex Selection Weight data value for the specified vertex.
Sets the Vertex Selection Weight data value to 1.0 for all vertices.
Enables support of the Vertex Selection Weight channel.
Deletes (deallocates) the Vertex Selection Weight data array.
Returns the Vertex Weight data value for the specified vertex.
Sets the Vertex Weight data value for the specified vertex.
Sets the Vertex Weight data value to 1.0 for all vertices.
Enables support of the Vertex Weight channel.
Returns the Vertex Alpha data value for the specified vertex.
Sets the Vertex Alpha data value for the specified vertex.
Sets the Vertex Alpha data value to 1.0 for all vertices.
Enables support of the Vertex Alpha channel.
Returns the Vertex Corner data value for the specified vertex.
Sets the Vertex Corner data value for the specified vertex.
Sets the Vertex Corner data value to 0.0 for all vertices.
Enables support of the Vertex Corner channel.