|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.BezierPatch
public class BezierPatch
BezierPatch defines a 4x4 mesh of control points. The patch
will be enough to generate a single section of a BezierMesh.
The detail level of the patch determines the smoothness of the resultant
BezierMesh.
| Constructor Summary | |
|---|---|
BezierPatch()
Constructor instantiates a new BezierPatch with a default
empty control point mesh and a detail level of zero. |
|
BezierPatch(Vector3f[][] anchors)
Constructor instantiates a new BezierPatch with a given
control point grid and a default detail level of zero. |
|
BezierPatch(Vector3f[][] anchors,
int detailLevel)
Constructor instantiates a new BezierPatch with a given
control point grid and a given detail level. |
|
| Method Summary | |
|---|---|
Vector3f |
getAnchor(int i,
int j)
getAnchor returns a single control anchor of a given (i,
j) of the patch. |
Vector3f[][] |
getAnchors()
getAnchors returns the control anchors that make up this
patch. |
java.lang.Class |
getClassTag()
The peristed type for the object. |
int |
getDetailLevel()
getDetailLevel retrieves the detail level of this patch. |
void |
read(JMEImporter e)
|
void |
setAnchor(int i,
int j,
Vector3f anchor)
setAnchor sets a single anchor of the patch. |
void |
setAnchors(Vector3f[][] anchors)
setAnchors sets the control anchors of this patch. |
void |
setDetailLevel(int detailLevel)
setDetailLevel sets the detail level of this patch. |
void |
write(JMEExporter e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BezierPatch()
BezierPatch with a default
empty control point mesh and a detail level of zero.
public BezierPatch(Vector3f[][] anchors)
BezierPatch with a given
control point grid and a default detail level of zero.
anchors - the control points that make up the patch.
public BezierPatch(Vector3f[][] anchors,
int detailLevel)
BezierPatch with a given
control point grid and a given detail level.
anchors - the control points that make up the patch.detailLevel - the detail level of the patch.| Method Detail |
|---|
public void setAnchors(Vector3f[][] anchors)
setAnchors sets the control anchors of this patch.
anchors - the control anchors of this patch.public Vector3f[][] getAnchors()
getAnchors returns the control anchors that make up this
patch.
public void setAnchor(int i,
int j,
Vector3f anchor)
setAnchor sets a single anchor of the patch.
i - the i index (row).j - the j index (column).anchor - the control anchor for this point.
public Vector3f getAnchor(int i,
int j)
getAnchor returns a single control anchor of a given (i,
j) of the patch.
i - the i index (row).j - the j index (column).
public void setDetailLevel(int detailLevel)
setDetailLevel sets the detail level of this patch.
detailLevel - the detail level of this patch.public int getDetailLevel()
getDetailLevel retrieves the detail level of this patch.
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablejava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savablejava.io.IOExceptionpublic java.lang.Class getClassTag()
Savable
getClassTag in interface Savable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||