public class SubdivisionMesh extends PolygonMesh
| Modifier and Type | Class and Description |
|---|---|
static class |
SubdivisionMesh.BoundaryMode
Describes whether the edges and points at the boundary are treated as creases.
|
static class |
SubdivisionMesh.MapBorderMode
Describes how the new texture coordinate for the control point is defined.
|
faces, numEdgesInFaces| Constructor and Description |
|---|
SubdivisionMesh(PolygonMesh originalMesh,
int subdivisionLevel,
SubdivisionMesh.BoundaryMode boundaryMode,
SubdivisionMesh.MapBorderMode mapBorderMode)
Instantiates a new subdivision mesh.
|
| Modifier and Type | Method and Description |
|---|---|
SubdivisionMesh.BoundaryMode |
getBoundaryMode()
Gets the boundary mode.
|
SubdivisionMesh.MapBorderMode |
getMapBorderMode()
Gets the map border mode.
|
PolygonMesh |
getOriginalMesh()
Gets the original mesh.
|
int |
getSubdivisionLevel()
Gets the subdivision level.
|
void |
setBoundaryMode(SubdivisionMesh.BoundaryMode boundaryMode)
Sets the boundary mode.
|
void |
setMapBorderMode(SubdivisionMesh.MapBorderMode mapBorderMode)
Sets the map border mode.
|
void |
setSubdivisionLevel(int subdivisionLevel)
Sets the subdivision level.
|
void |
update()
Updates the variables of the underlying polygon mesh.
|
getFaceElementSize, getFaceSmoothingGroups, getNumEdgesInFaces, getPointElementSize, getPoints, getTexCoordElementSize, getTexCoordspublic SubdivisionMesh(PolygonMesh originalMesh, int subdivisionLevel, SubdivisionMesh.BoundaryMode boundaryMode, SubdivisionMesh.MapBorderMode mapBorderMode)
originalMesh - the original meshsubdivisionLevel - the subdivision levelboundaryMode - the boundary modemapBorderMode - the map border modepublic void update()
public PolygonMesh getOriginalMesh()
public int getSubdivisionLevel()
public void setSubdivisionLevel(int subdivisionLevel)
subdivisionLevel - the new subdivision levelpublic SubdivisionMesh.BoundaryMode getBoundaryMode()
public void setBoundaryMode(SubdivisionMesh.BoundaryMode boundaryMode)
boundaryMode - the new boundary modepublic SubdivisionMesh.MapBorderMode getMapBorderMode()
public void setMapBorderMode(SubdivisionMesh.MapBorderMode mapBorderMode)
mapBorderMode - the new map border mode