Class nurbs.ControlNet
All Packages Class Hierarchy This Package Previous Next Index
Class nurbs.ControlNet
java.lang.Object
|
+----nurbs.ControlNet
- public class ControlNet
- extends Object
- implements Cloneable
Representation of a network of control points for a
NURBS curve or surface.
-
controlPoints
-
-
numUControlPoints
-
-
numVControlPoints
-
-
ControlNet(int, int)
- Constructs a ControlNet with the specified U, V dimensions.
-
ControlNet(int, int, Point4[][])
- Constructs a ControlNet from the specified Point4 array.
-
clone()
- Performs a deep copy of this ControlNet.
-
rotate(float, float, float, float)
- Rotate the control points.
-
scale(float)
- Scale the control points.
-
scale(float, float, float)
- Scale the control points.
-
toString()
- Creates a String representation for the ControlNet
-
toVRMLCoordinateNode()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
-
toVRMLCoordIndex()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
-
toVRMLString()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
-
translate(float, float, float)
- Translate the control points.
-
transpose()
- Transpose the control points by swapping U and V.
numUControlPoints
protected int numUControlPoints
numVControlPoints
protected int numVControlPoints
controlPoints
protected Point4 controlPoints[][]
ControlNet
public ControlNet(int numUControlPoints,
int numVControlPoints,
Point4 controlPoints[][])
- Constructs a ControlNet from the specified Point4 array.
- Parameters:
- numUControlPoints - the number of control points in the U
direction
- numVControlPoints - the number of control points in the V
direction
- controlPoints - the array of Point4 control points
ControlNet
public ControlNet(int numUControlPoints,
int numVControlPoints)
- Constructs a ControlNet with the specified U, V dimensions.
- Parameters:
- numUControlPoints - the number of control points in the U
direction
- numVControlPoints - the number of control points in the V
direction
transpose
public void transpose()
- Transpose the control points by swapping U and V.
scale
public void scale(float scale)
- Scale the control points.
- Parameters:
- scale - the scale
scale
public void scale(float xscale,
float yscale,
float zscale)
- Scale the control points.
- Parameters:
- scale - the scale
translate
public void translate(float x,
float y,
float z)
- Translate the control points.
- Parameters:
- x - the translation in x
- y - the translation in y
- z - the translation in z
rotate
public void rotate(float x,
float y,
float z,
float theta)
- Rotate the control points.
- Parameters:
- x - the x component of the rotation axis
- y - the y component of the rotation axis
- z - the z component of the rotation axis
- theta - the rotation in radians
clone
public Object clone()
- Performs a deep copy of this ControlNet.
- Overrides:
- clone in class Object
toVRMLString
public String toVRMLString()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
- Returns:
- a string representation of the ControlNet
toVRMLCoordIndex
public int[] toVRMLCoordIndex()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
- Returns:
- a string representation of the ControlNet
toVRMLCoordinateNode
public String toVRMLCoordinateNode()
- Creates a String representation for the ControlNet
in the form of a VRML IndexedFaceSet node.
- Returns:
- a string representation of the ControlNet
toString
public String toString()
- Creates a String representation for the ControlNet
- Returns:
- a string representation of the ControlNet
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index