public class SubdividedPointArray extends SymbolicPointArray
data, numPoints| Constructor and Description |
|---|
SubdividedPointArray(SymbolicPointArray controlPointArray,
int numPoints,
SubdivisionMesh.BoundaryMode boundaryMode)
Instantiates a new subdivided point array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addControlPoint(int[] facePoints,
int[] edgePoints,
int[] fromEdgePoints,
int[] toEdgePoints,
boolean[] isEdgeBoundary,
int origPoint,
boolean isBoundary,
boolean hasInternalEdge)
Adds the control point.
|
int |
addEdgePoint(int[] facePoints,
int fromPoint,
int toPoint,
boolean isBoundary)
Adds the edge point.
|
int |
addFacePoint(int[] vertices)
Adds the face point.
|
void |
update()
Updates the variables x, y, z based on the state of the other variables
that this symbolic point depends on.
|
public SubdividedPointArray(SymbolicPointArray controlPointArray, int numPoints, SubdivisionMesh.BoundaryMode boundaryMode)
controlPointArray - the control point arraynumPoints - the num pointsboundaryMode - the boundary modepublic int addFacePoint(int[] vertices)
vertices - the verticespublic int addEdgePoint(int[] facePoints,
int fromPoint,
int toPoint,
boolean isBoundary)
facePoints - the face pointsfromPoint - the from pointtoPoint - the to pointisBoundary - the is boundarypublic int addControlPoint(int[] facePoints,
int[] edgePoints,
int[] fromEdgePoints,
int[] toEdgePoints,
boolean[] isEdgeBoundary,
int origPoint,
boolean isBoundary,
boolean hasInternalEdge)
facePoints - the face pointsedgePoints - the edge pointsfromEdgePoints - the from edge pointstoEdgePoints - the to edge pointsisEdgeBoundary - the is edge boundaryorigPoint - the orig pointisBoundary - the is boundaryhasInternalEdge - the has internal edgepublic void update()
SymbolicPointArrayupdate in class SymbolicPointArray