Package au.edu.unsw.cse
Class QuadMesh3d
java.lang.Object
au.edu.unsw.cse.Object3dAdaptor
au.edu.unsw.cse.QuadMesh3d
- All Implemented Interfaces:
Object3d
public class QuadMesh3d extends Object3dAdaptor
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Color
ci
protected java.awt.Color
cj
protected Point3d[][]
pts
Fields inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, firstFrame, lastFrame
-
Constructor Summary
Constructors Constructor Description QuadMesh3d()
Create a Quad meshQuadMesh3d(Point3d[][] pts)
Create a Quad mesh, given controls -
Method Summary
Methods inherited from class au.edu.unsw.cse.Object3dAdaptor
centre, depthBias, getColorIndex, getFirstFrame, getLastFrame, getSelectFrame, id, select, setCentre, setFirstFrame, setLastFrame, toVRML, toVRMLBody, visible, vrmlPROTO, vrmlPROTOBody, vrmlPROTOExtraFields, vrmlPROTOFields, vrmlPROTOINBody, vrmlPROTOINFields, vrmlPROTOMaterials, vrmlPROTOName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
pts
-
ci
protected java.awt.Color ci -
cj
protected java.awt.Color cj
-
-
Constructor Details
-
QuadMesh3d
public QuadMesh3d()Create a Quad mesh -
QuadMesh3d
Create a Quad mesh, given controls
-
-
Method Details
-
setPoints
-
setColors
public void setColors(java.awt.Color ci, java.awt.Color cj) -
render
render the Mesh, given a 3D view- Specified by:
render
in interfaceObject3d
- Overrides:
render
in classObject3dAdaptor
-
transform
public void transform(au.edu.unsw.cse.Matrix3D T)compute new position of pol- Specified by:
transform
in interfaceObject3d
- Overrides:
transform
in classObject3dAdaptor
-
toVRML
public java.lang.String toVRML()Turn into VRML
-