void | topologyChanged () |
void | vertexSelectionChanged () |
TODO: Add detailed description.
void : activateVertexGroup( String name )
Activates a vertex group, creating it if it does not exist yet. All vertices added after this call will be added to the given group. To stop adding vertices to the group, you must call deactivateVertexGroup(). More than one vertex group can be active at a time.
Parameter(s):
void : addToVertexGroup( String name )
Adds all selected vertices to the given group. Fails if the group does not exist.
Parameter(s):
Number : addVertex( Number x, Number y, Number z )
Parameter(s):
Return Value:
Number : addVertex( DzVec3 pnt )
Parameter(s):
Return Value:
void : addVerticesFromMesh( DzVertexMesh mesh )
Adds all the vertices from the given mesh to this mesh.
Parameter(s):
void : beginVertexSelectionEdit()
Begins an edit of the vertex selection. Must be called before editing vertex selection of the mesh and paired with a call to finishVertexSelectionEdit().
Boolean : createVertexGroup( String name )
Creates a new vertex group from the set of currently selected vertices.
Parameter(s):
Return Value:
true
if there were vertices selected and the group was created, otherwise false
.void : deactivateAllVertexGroups()
Deactivates all vertex groups.
void : deactivateVertexGroup( String name )
Deactivates a vertex group.
Parameter(s):
void : finishVertexSelectionEdit()
Finishes an edit of the vertex selection. Must be called after editing vertex selection of the mesh is completed and after beginVertexSelectionEdit() is called.
DzVertexGroup : getActiveVertexGroup( Number index )
Parameter(s):
Return Value:
Return Value:
Since:
Number : getNumActiveVertexGroups()
Return Value:
Return Value:
Number : getNumVertices()
Return Value:
Return Value:
Since:
Return Value:
Since:
DzVec3 : getVertex( Number index )
Parameter(s):
Return Value:
DzVertexGroup : getVertexGroup( Number index )
Parameter(s):
Return Value:
void : invertVertexSelection()
Inverts the selected state of vertices.
Boolean : isVertexLocked( Number index )
Parameter(s):
Return Value:
true
if the vertex at the given index is locked, otherwise false
.Attention:
index
is not checked to for whether or not it is within the [0, getNumVertices() - 1] range.Since:
Boolean : isVertexSelected( Number index )
Parameter(s):
Return Value:
true
if the vertex at the given index is selected, otherwise false
.Attention:
index
is not checked to for whether or not it is within the [0, getNumVertices() - 1] range.DzError : preSizeVertexArray( Number numVerts )
Pre-sizes the array of vertices in this mesh. This function should only be called between calls to beginEdit() and finishEdit(). This allocates the memory needed to store the given number of vertices, but unlike setVertexArray() it does not change the number of vertices in the mesh - this is intended to presize the vertices array before using the addVertex() function. This should only be used when you know exactly how many vertices are going to be in the final list, or can approximate very accurately as any unused slots will be wasted.
Parameter(s):
Return Value:
void : selectAllVertices( Boolean onOff=true )
Selects/Deselects all vertices.
Parameter(s):
true
, selects all vertices. If false
, deselects all vertices.void : selectVertex( Number index, Boolean onOff=true )
Selects/deselects the vertex at the given index in the list.
Parameter(s):
true
, selects the vertex. If false
, deselects the vertex.void : selectVerticesByIndexList( DzIndexList list, Boolean onOff=true )
Selects/Deselects a list of vertices.
Parameter(s):
true
, selects vertices in the list. If false
, deselects vertices in the list.void : setVertex( Number index, DzVec3 pnt )
Sets the vertex at the given index to the given position.
Parameter(s):
void : setVertexArray( Number numVerts )
Resizes the vertex array to numVerts items. This can be used for fast mesh copying when converting from another kind of shape type, etc.
Parameter(s):
void : topologyChanged()
Signature:“topologyChanged()”
Emitted when the topology of the geometry has changed.
void : vertexSelectionChanged()
Signature:“vertexSelectionChanged()”
Emitted when the vertex selection state has changed.