DzMRMMesh Class Reference
[Object and Geometry Objects]

A specialized polygon mesh that supports multiple levels of detail. DzMRMMesh supports multiple levels of detail through multiple facet sets. Like a normal polygon mesh, it has a single vertex list, however, it has multiple facet lists, only one of which can be active at a time. More...

Inheritance diagram for DzMRMMesh:

DzPolyMesh DzVertexMesh DzGeometry DzStorable DzBase QObject Object List of all members.

Methods

Number createFacetSet (String name)
Number findFacetSet (String name)
String getActiveFacetSet ()
Number getActiveFacetSetId ()
String getFacetSetName (Number which)
Number getFacetSetNumUVSets (Number facetIdx)
DzVertexMap getFacetSetUVSet (Number facetIdx, Number uvIdx)
Number getNumFacetSets ()
void moveFacetSet (Number from, Number to)
Boolean removeFacetSet (Number which)
void renameFacetSet (Number which, String name)
Boolean setActiveFacetSet (String name)
void setActiveFacetSet (Number which)

Constructors / Destructors



 DzMRMMesh ()

Signals

void activeFacetSetChanged (Number which)
 Signature: "activeFacetSetChanged(int)"
void facetSetListChanged ()
 Signature: "facetSetListChanged()"

Detailed Description

A specialized polygon mesh that supports multiple levels of detail. DzMRMMesh supports multiple levels of detail through multiple facet sets. Like a normal polygon mesh, it has a single vertex list, however, it has multiple facet lists, only one of which can be active at a time.


Constructor & Destructor Documentation

DzMRMMesh::DzMRMMesh (  ) 

Default Constructor.


Member Function Documentation

void DzMRMMesh::activeFacetSetChanged ( Number  which  )  [signal]

Signature: "activeFacetSetChanged(int)"

Emitted when the active facet set changes.

Number DzMRMMesh::createFacetSet ( String  name  ) 

Creates a new facet set with the given name and sets it as the current facet set.

Parameters:
name The User-readable name for the new facet set.
Returns:
The index of the new facet set.

void DzMRMMesh::facetSetListChanged (  )  [signal]

Signature: "facetSetListChanged()"

Emitted when the list of facet sets changes.

Number DzMRMMesh::findFacetSet ( String  name  ) 

Parameters:
name The name of the facet set to get the index of.
Returns:
The index of the facet sets with the given name, -1 if no match is found

String DzMRMMesh::getActiveFacetSet (  ) 

Returns:
The name of the current facet set

Number DzMRMMesh::getActiveFacetSetId (  ) 

Returns:
The index of the current facet set

String DzMRMMesh::getFacetSetName ( Number  which  ) 

Parameters:
which The index of the facet set to get the name of
Returns:
The name of the facet set at the given index

Number DzMRMMesh::getFacetSetNumUVSets ( Number  facetIdx  ) 

Parameters:
facetIdx The index of the facet set to get the number of UV sets for
Returns:
The number of UV sets for the facet set at the given index

DzVertexMap DzMRMMesh::getFacetSetUVSet ( Number  facetIdx,
Number  uvIdx 
)

Parameters:
facetIdx The index of the facet set to get the number of UV sets for
Returns:
The number of UV sets for the facet set at the given index

Number DzMRMMesh::getNumFacetSets (  ) 

Returns:
The number of facet sets for this mesh

void DzMRMMesh::moveFacetSet ( Number  from,
Number  to 
)

Adjust FacetSet order.

Parameters:
from The index of the FacetSet to move.
to The index in the list to move the FacetSet to.

Boolean DzMRMMesh::removeFacetSet ( Number  which  ) 

Removes a facet set from the mesh.

Parameters:
which The index of the facet set to remove.
Returns:
true if the facet set was removed.

void DzMRMMesh::renameFacetSet ( Number  which,
String  name 
)

Renames the facet set at the given index if it exists.

Parameters:
which The index of the facet set to rename
name The new User-readable name for the facet set.

Boolean DzMRMMesh::setActiveFacetSet ( String  name  ) 

Sets the active facet set if a set with the given name exists.

Parameters:
name The name of the facet set to make active.
Returns:
true if a matching facet set was found, false if the active set was not changed.

void DzMRMMesh::setActiveFacetSet ( Number  which  ) 

Sets the active facet set

Parameters:
which The index of the facet set to make active.


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.