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.

Variable Index

 o controlPoints
 o numUControlPoints
 o numVControlPoints

Constructor Index

 o ControlNet(int, int)
Constructs a ControlNet with the specified U, V dimensions.
 o ControlNet(int, int, Point4[][])
Constructs a ControlNet from the specified Point4 array.

Method Index

 o clone()
Performs a deep copy of this ControlNet.
 o rotate(float, float, float, float)
Rotate the control points.
 o scale(float)
Scale the control points.
 o scale(float, float, float)
Scale the control points.
 o toString()
Creates a String representation for the ControlNet
 o toVRMLCoordinateNode()
Creates a String representation for the ControlNet in the form of a VRML IndexedFaceSet node.
 o toVRMLCoordIndex()
Creates a String representation for the ControlNet in the form of a VRML IndexedFaceSet node.
 o toVRMLString()
Creates a String representation for the ControlNet in the form of a VRML IndexedFaceSet node.
 o translate(float, float, float)
Translate the control points.
 o transpose()
Transpose the control points by swapping U and V.

Variables

 o numUControlPoints
  protected int numUControlPoints
 o numVControlPoints
  protected int numVControlPoints
 o controlPoints
  protected Point4 controlPoints[][]

Constructors

 o 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
 o 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

Methods

 o transpose
  public void transpose()
Transpose the control points by swapping U and V.
 o scale
  public void scale(float scale)
Scale the control points.
Parameters:
scale - the scale
 o scale
  public void scale(float xscale,
                    float yscale,
                    float zscale)
Scale the control points.
Parameters:
scale - the scale
 o 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
 o 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
 o clone
  public Object clone()
Performs a deep copy of this ControlNet.
Overrides:
clone in class Object
 o 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
 o 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
 o 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
 o 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