Contents
Class SubdivisionMesh
java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.shape3d.PolygonMesh
eu.mihosoft.vrl.v3d.ext.openjfx.shape3d.SubdivisionMesh
Catmull Clark subdivision surface polygon mesh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Describes whether the edges and points at the boundary are treated as creasesstatic enum
Describes how the new texture coordinate for the control point is defined -
Field Summary
Fields inherited from class eu.mihosoft.vrl.v3d.ext.openjfx.shape3d.PolygonMesh
faces, numEdgesInFaces
-
Constructor Summary
ConstructorsConstructorDescriptionSubdivisionMesh
(PolygonMesh originalMesh, int subdivisionLevel, SubdivisionMesh.BoundaryMode boundaryMode, SubdivisionMesh.MapBorderMode mapBorderMode) -
Method Summary
Modifier and TypeMethodDescriptionint
void
setBoundaryMode
(SubdivisionMesh.BoundaryMode boundaryMode) void
setMapBorderMode
(SubdivisionMesh.MapBorderMode mapBorderMode) void
setSubdivisionLevel
(int subdivisionLevel) void
update()
Updates the variables of the underlying polygon mesh.Methods inherited from class eu.mihosoft.vrl.v3d.ext.openjfx.shape3d.PolygonMesh
getFaceElementSize, getFaceSmoothingGroups, getNumEdgesInFaces, getPointElementSize, getPoints, getTexCoordElementSize, getTexCoords
-
Constructor Details
-
SubdivisionMesh
public SubdivisionMesh(PolygonMesh originalMesh, int subdivisionLevel, SubdivisionMesh.BoundaryMode boundaryMode, SubdivisionMesh.MapBorderMode mapBorderMode)
-
-
Method Details
-
update
public void update()Updates the variables of the underlying polygon mesh. It only updates the fields that need to be updated. -
getOriginalMesh
-
getSubdivisionLevel
public int getSubdivisionLevel() -
setSubdivisionLevel
public void setSubdivisionLevel(int subdivisionLevel) -
getBoundaryMode
-
setBoundaryMode
-
getMapBorderMode
-
setMapBorderMode
-