A general polygon mesh.
Inherits :
DAZ Script | |
---|---|
Number | getInfiniteSharpValueWeightValue () |
String | getOpenSubdivVersion () |
DAZ Script |
---|
DzFacetMesh () |
void | assetModified () |
void | assetWasSaved () |
void | edgeSelectionChanged () |
void | facetSelectionChanged () |
void | polylineSelectionChanged () |
void | subDivisionEnabled ( Boolean onOff ) |
void | uvListChanged () |
This facet mesh handles polygons in a general manner. DAZ Studio converts all higher order polygons to triangles and quadrangles.
The different subdivision algorithms.
The different types of edge interpolation for subdivision.
The different types of normal smoothing for subdivision.
Since:
Holds the author of the file for this mesh. (Read Only)
Since:
Holds the revision version of the asset file for this mesh. (Read Only)
Since:
Holds the asset id for this mesh.
Since:
Holds the asset id aliases for this mesh.
Holds the modified date of the asset file for this mesh. (Read Only)
Since:
Holds whether or not the asset for this mesh needs to be saved. (Read Only)
Since:
Holds the URI of the asset source for this mesh; only valid when the asset is in an embedded state - i.e. modified. (Read Only)
Since:
Holds the asset URI for this mesh. (Read Only)
Since:
Holds additional ids that this mesh extends.
Since:
Holds the name aliases for this mesh.
Number : getInfiniteSharpValueWeightValue()
Return Value:
Since:
String : getOpenSubdivVersion()
Return Value:
Since:
Number : activateFaceGroup( String name )
Activates the given face group - all faces added after this call will be added to the group. If the named group is not found, a new empty group by that name is created and made active.
Parameter(s):
Return Value:
void : activateFaceGroup( Number index )
Activates the given face group - all faces added after this call will be added to the group.
Parameter(s):
Number : activateMaterial( String name )
Activates the given material group - all faces added after this call will be added to the material.
Parameter(s):
Return Value:
void : activateMaterial( Number index )
Activates the given material group - all faces added after this call will be added to the material.
Parameter(s):
void : addFacet( Array vertIndices, Array uvIndices, Number flags=0 )
Adds a facet to this mesh.
Parameter(s):
Attention:
vertIndices
and uvIndices
lists. If the face is a triangle, make the last value -1.void : addFacet( DzFacet facetIn, Number pTex=0x80000000, Number flags=0 )
Adds a facet to this mesh.
Parameter(s):
void : addPolyline( Array vertIndices, Array uvIndices=[], Number flags=0 )
Adds a line to this mesh.
Parameter(s):
Since:
void : addPolylineRootSegment( Number vertIdx1, Number vertIdx2, Number flags=0 )
Adds a polyline to this mesh with a single root segment.
Parameter(s):
See Also:
Since:
void : addPolylineRootSegment( Number vertIdx1, Number vertIdx2, Number uvIdx1, Number uvIdx2, Number flags=0 )
Adds a polyline to this mesh with a single root segment.
Parameter(s):
See Also:
Since:
void : addSegmentToLastPolyline( Number vertexIndex )
Adds a segment to the last polyline in the list.
Parameter(s):
Attention:
Since:
void : addSegmentToLastPolyline( Number vertexIndex, Number uvIndex )
Adds a segment to the last polyline.
Parameter(s):
Attention:
Since:
void : addUVSet( DzUVSet uvSet )
Adds a UV set to this mesh.
Parameter(s):
void : applyFullSmoothing()
Changes the normal index on all facets such that all verticies have smooth normals.
void : applySmoothing( Number angle )
Changes the normal index on all facets such that adjacent facets with less than the specified angle between them have smooth normals.
Parameter(s):
void : applyUVSet( DzUVSet uvSet )
Applies a set of texture coordinates to this mesh.
Parameter(s):
void : clearWeightedEdges()
Removes all subdivison weight for all edges of this mesh.
Since:
void : clearWeightedVertices()
Removes subdivison weight for all vertices of this mesh.
Since:
Boolean : createFaceGroup( String name )
Creates a face group with the given name - all faces added after this call will be added to the group.
Parameter(s):
Return Value:
true
if the face group was created, otherwise false
.Number : createMaterialGroup( String name )
Creates a material group with the given name - all faces added after this call will be added to the material.
Parameter(s):
Return Value:
DzFaceGroup : findFaceGroup( String name )
Return Value:
DzMaterialFaceGroup : findMaterialGroup( String name )
Return Value:
Number : findUVSetIndexByLabel( String label )
Searches the geometry for a UV set with the given label.
Parameter(s):
Return Value:
Number : getCurrentSubDivisionLevel()
Return Value:
DzEdge : getEdge( Number index )
Parameter(s):
Return Value:
DzFaceGroup : getFaceGroup( Number index )
Return Value:
DzFacet : getFacet( Number index )
Parameter(s):
Return Value:
DzMaterialFaceGroup : getMaterialGroup( Number index )
Parameter(s):
Return Value:
DzVec3 : getNormal( Number index )
Parameter(s):
Return Value:
Number : getNumEdges()
Return Value:
Return Value:
Number : getNumFacets()
Return Value:
Number : getNumMaterialGroups()
Return Value:
Number : getNumNormals()
Return Value:
Return Value:
Since:
Number : getNumPolylineSegments()
Return Value:
Since:
Number : getNumQuads()
Return Value:
Attention:
See Also:
Since:
Number : getNumTris()
Return Value:
Attention:
See Also:
Since:
Number : getNumWeightedEdges()
Return Value:
Since:
Number : getNumWeightedVertices()
Return Value:
Since:
Number : getPolylineCageIndex( Number polylineIdx )
Parameter(s):
Return Value:
Since:
Number : getPolylineFaceGroupIndex( Number polylineIdx )
Parameter(s):
Return Value:
Since:
Number : getPolylineMaterialGroupIndex( Number polylineIdx )
Parameter(s):
Return Value:
Since:
Array : getPolylineUVIndices( Number index )
Parameter(s):
Return Value:
Since:
Array : getPolylineVertexIndices( Number index )
Parameter(s):
Return Value:
Since:
SubDAlgorithm : getSubDAlgorithm()
Return Value:
SubDEdgeInterpolation : getSubDEdgeInterpolation()
Return Value:
SubDNormalSmoothingMode : getSubDNormalSmoothingMode()
Return Value:
Since:
Number : getVertexWeight( Number vertIdx )
Parameter(s):
Return Value:
Since:
Return Value:
Since:
Return Value:
Since:
void : insertUVSet( Number idx, DzUVSet uvSet )
Inserts a UV set for this mesh in the specified position.
Parameter(s):
DzError : preSizeFacets( Number numFacets )
Sets the number of facets on this mesh.
Parameter(s):
Return Value:
DzError : preSizePolylines( Number numPolyLines, Number numTotalSegments )
Pre-sizes the polylines set.
Parameter(s):
Return Value:
Since:
void : preSizeWeightedEdges( Number numEdges )
Sets the number of subdivision weighted edges on this mesh (if subdivision is enabled).
Parameter(s):
Since:
void : preSizeWeightedVertices( Number numVerts )
Sets the number of subdivision weighted vertices on this mesh (if subdivision is enabled).
Parameter(s):
Since:
void : removeAllFacets( Boolean removeMats, Boolean removeGroups )
Removes all facets from this mesh.
Parameter(s):
true
, removes all of the current material groups.true
, removes all of the current face groups.void : removeAllFacets()
Removes all facets from this mesh without removing any face groups or material groups.
void : removeAllPolylines( Boolean removeMats=false, Boolean removeGroups=false )
Removes all polylines.
Parameter(s):
true
, removes material face groups that become empty as a result of removing the polylines.true
, removes face groups that become empty as a result of removing the polylines.Since:
void : removeAllUVSets()
Removes all UV sets from this mesh.
DzError : removeFaceGroup( String name, String defaultGrp=“” )
Removes the face group from this mesh.
Parameter(s):
name
will be assigned to.Return Value:
Since:
void : removeFacet( Number facetIdx )
Removes the facet at the given index from this mesh.
Parameter(s):
void : removeFacets( DzFaceGroup grp, Boolean removeVerts=true )
Removes the facets in the given group from this mesh. This will traverse all the face and material groups and remove the facets referred to.
Parameter(s):
DzError : removeMaterialGroup( Number removeIdx, Number defaultGrpIdx, DzShape shape )
Removes the given material group index from all of the facets. Assigns any facets that are removed to the default group. If the default group does not exist one is created on the shape that is passed in.
Parameter(s):
void : removePolyline( Number polylineIdx )
Removes the polyline at the given index.
Parameter(s):
Since:
void : removeUVSet( Number index )
Removes the UV set at the specified index from this mesh.
Parameter(s):
void : removeUVSet( DzUVSet uvSet )
Removes a UV set from this mesh.
Parameter(s):
void : setEdgeWeight( Number vertIdxA, Number vertIdxB, Number weight )
Sets the subdivision weight of the specified edge (if subdivision is enabled).
Parameter(s):
Since:
void : setNumPolylines( Number numPolyLines, Number numTotalSegments )
Sets the number polylines.
Parameter(s):
Since:
void : setSubDAlgorithm( SubDAlgorithm algo )
Sets the algorithm for subdivision meshes.
Parameter(s):
void : setSubDEdgeInterpolation( SubDEdgeInterpolation interp )
Sets the edge interpolation type for rendering Subdivision meshes.
Parameter(s):
void : setSubDNormalSmoothingMode( SubDNormalSmoothingMode normalMode )
Sets the normal smmothing mode for subdivision meshes.
Parameter(s):
Since:
Sets the texture coordinates for this mesh.
Parameter(s):
void : setVertexWeight( Number vertIdx, Number weight )
Sets the subdivision weight for the specified vertex (if subdivision is enabled).
Parameter(s):
Since:
void : assetModified()
Signature:“assetModified()”
Emitted when the asset for this mesh has been modified.
void : assetWasSaved()
Signature:“assetWasSaved()”
Emitted when the asset for this mesh has been saved.
void : edgeSelectionChanged()
Signature:“edgeSelectionChanged()”
Emitted when the edge selection for this mesh has changed.
void : facetSelectionChanged()
Signature:“facetSelectionChanged()”
Emitted when the facet selection for this mesh has changed.
void : polylineSelectionChanged()
Signature:“polylineSelectionChanged()”
Emitted when the polyline selection for this mesh has changed.
void : subDivisionEnabled( Boolean onOff )
Signature:“subDivisionEnabled(bool)”
Emitted when the state of subdivision for this mesh changes.
Parameter(s):
void : uvListChanged()
Signature:“uvListChanged()”
Emitted when the list of UV sets for this mesh has changed.