|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.geom.GeometryGenerator
org.j3d.geom.spline.BezierGenerator
public class BezierGenerator
Geometry generator for generating a single Bezier curve.
Bezier curves of all orders are permitted. Order information is derived from the provided controlPoint coordinates.
| Constructor Summary | |
|---|---|
BezierGenerator()
Construct a new generator with default settings of 16 line segments over the length of one curve. |
|
BezierGenerator(int facets)
Construct a new generator with the specified number of tessellations over the length of the curve, regardless of extents. |
|
| Method Summary | |
|---|---|
void |
generate(GeometryData data)
Generate a new set of geometry items patchd on the passed data. |
int |
getVertexCount(GeometryData data)
Get the number of vertices that this generator will create for the curve. |
void |
setControlPoints(float[] controlPoints)
Set the curve controlPoints. |
void |
setControlPoints(float[] controlPoints,
int numValid)
Set the curve controlPoints from a subset of the given array. |
void |
setFacetCount(int facets)
Change the number of facets used to create this cone. |
| Methods inherited from class org.j3d.geom.GeometryGenerator |
|---|
createFaceNormal, createFaceNormal, createRadialNormal, createRadialNormal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BezierGenerator()
public BezierGenerator(int facets)
facets - The number of facets on the side of the curve
java.lang.IllegalArgumentException - The number of facets is less than 3| Method Detail |
|---|
public void setFacetCount(int facets)
facets - The number of facets on the side of the cone
java.lang.IllegalArgumentException - The number of facets is less than 3public void setControlPoints(float[] controlPoints)
controlPoints - The controlPoint coordinate values
public void setControlPoints(float[] controlPoints,
int numValid)
controlPoints - The controlPoint coordinate valuesnumValid - The number of valid points in the array
public int getVertexCount(GeometryData data)
throws UnsupportedTypeException
getVertexCount in class GeometryGeneratordata - The data to base the calculations on
UnsupportedTypeException - The generator cannot handle the type
of geometry you have requested
public void generate(GeometryData data)
throws UnsupportedTypeException,
InvalidArraySizeException
generate in class GeometryGeneratordata - The data to patch the calculations on
InvalidArraySizeException - The array is not big enough to contain
the requested geometry
UnsupportedTypeException - The generator cannot handle the type
of geometry you have requested
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||