Inheritance diagram for DzVertexMesh:
Methods | |
void | activateVertexGroup (String name) |
void | addToVertexGroup (String name) |
Number | addVertex (DzVec3 pnt) |
Number | addVertex (Number x, Number y, Number z) |
Boolean | createVertexGroup (String name) |
void | deactivateAllVertexGroups () |
void | deactivateVertexGroup (String name) |
DzVertexGroup | getActiveVertexGroup (Number which) |
Number | getNumActiveVertexGroups () |
Number | getNumVertexGroups () |
Number | getNumVertices () |
DzVec3 | getVertex (Number idx) |
DzVertexGroup | getVertexGroup (Number which) |
Boolean | isVertexSelected (Number which) |
DzError | preSizeVertexArray (Number numVerts) |
void | selectAllVertices (Boolean onOff=true) |
void | selectVertex (Number which, Boolean onOff=true) |
void | setVertex (Number index, DzVec3 pnt) |
Signals | |
void | topologyChanged () |
Signature: "topologyChanged()" | |
void | vertexSelectionChanged () |
Signature: "vertexSelectionChanged()" |
void DzVertexMesh::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.
void DzVertexMesh::addToVertexGroup | ( | String | name | ) |
Adds all selected vertices to the given group. Fails if the group does not exist.
Adds a new vertex to the vertex array. Methods return the array index at which the vertex was added.
Adds a new vertex to the vertex array. Methods return the array index at which the vertex was added.
Creates a new vertex group from the set of currently selected vertices. Returns false if there were no vertices selected and the group was not created.
void DzVertexMesh::deactivateAllVertexGroups | ( | ) |
Deactivates all vertex groups
void DzVertexMesh::deactivateVertexGroup | ( | String | name | ) |
Deactivates a vertex group
DzVertexGroup DzVertexMesh::getActiveVertexGroup | ( | Number | which | ) |
Number DzVertexMesh::getNumActiveVertexGroups | ( | ) |
Number DzVertexMesh::getNumVertexGroups | ( | ) |
Number DzVertexMesh::getNumVertices | ( | ) |
DzVertexGroup DzVertexMesh::getVertexGroup | ( | Number | which | ) |
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.
Selects/deselects the vertex at the given index in the list.
Sets the vertex at the given index to the given value.
DzVertexMesh::topologyChanged | ( | ) | [signal] |
Signature: "topologyChanged()"
Emitted when the topology of the geometry has changed.
DzVertexMesh::vertexSelectionChanged | ( | ) | [signal] |
Signature: "vertexSelectionChanged()"
Emitted when the vertex selection state has changed.