DzVertexMesh Class Reference
[Object and Geometry Objects]

Base class for meshes that have a list of vertices. More...

Inheritance diagram for DzVertexMesh:

DzGeometry DzStorable DzBase QObject Object DzPolyMesh DzSubDMesh DzMRMMesh List of all members.

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()"

Detailed Description

Base class for meshes that have a list of vertices.


Member Function Documentation

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.

Number DzVertexMesh::addVertex ( DzVec3  pnt  ) 

Adds a new vertex to the vertex array. Methods return the array index at which the vertex was added.

Number DzVertexMesh::addVertex ( Number  x,
Number  y,
Number  z 
)

Adds a new vertex to the vertex array. Methods return the array index at which the vertex was added.

Boolean DzVertexMesh::createVertexGroup ( String  name  ) 

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  ) 

Returns:
The i'th active vertex group

Number DzVertexMesh::getNumActiveVertexGroups (  ) 

Returns:
The number of active vertex groups

Number DzVertexMesh::getNumVertexGroups (  ) 

Returns:
The number of vertex groups

Number DzVertexMesh::getNumVertices (  ) 

Returns:
The number of vertices

Reimplemented from DzGeometry.

DzVec3 DzVertexMesh::getVertex ( Number  idx  ) 

Returns:
The vertex at the given index

DzVertexGroup DzVertexMesh::getVertexGroup ( Number  which  ) 

Returns:
The i'th vertex group

Boolean DzVertexMesh::isVertexSelected ( Number  which  ) 

Returns:
true if the vertex at the given index is selected.

DzError DzVertexMesh::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.

void DzVertexMesh::selectAllVertices ( Boolean  onOff = true  ) 

Select/deselect all vertices.

void DzVertexMesh::selectVertex ( Number  which,
Boolean  onOff = true 
)

Selects/deselects the vertex at the given index in the list.

Number DzVertexMesh::setVertex ( Number  idx,
DzVec3  pnt 
)

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.


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.