public class Mesh3D extends java.lang.Object implements Draw3DDefaults
AMBIENT_LIGHT_ON, ARROW_POINT_HEIGHT, ARROW_POINT_RADIUS, ARROW_RADIUS, AV_POINT_DIVISIONS, AXIS_LENGTH, AXIS_RADIUS, BACKGROUND_COLOR, BOUNDRY_RADIUS, CAMERA_FAR_CLIP, CAMERA_INITIAL_DISTANCE, CAMERA_INITIAL_X_ANGLE, CAMERA_INITIAL_Y_ANGLE, CAMERA_NEAR_CLIP, CONE_DIVISIONS, CUMULATE_DEFAULT, CUMULATE_MANUAL_DEFAULT, CYLINDER_DIVISIONS, DEFAULT_ORIGIN, EDGE_RADIUS, EPSILON, LABEL_FONT, LABEL_FONT_SIZE, LINE_RADIUS, MIN_MAX_X, MIN_MAX_Y, MIN_MAX_Z, MOUSE_SPEED, OVAL_DIVISIONS, POINT_LIGHT_1_X, POINT_LIGHT_1_Y, POINT_LIGHT_1_Z, POINT_LIGHT_2_X, POINT_LIGHT_2_Y, POINT_LIGHT_2_Z, POINT_LIGHT_ON, POINT_SIZE, ROTATION_SPEED, SCENE_HEIGHT, SCENE_WIDTH, SCROLL_DELTA, SCROLL_FACTOR, SHOW_AXES, SHOW_BOUNDARY_CUBE, SHOW_DEFAULT_GRID, SHOW_TICK_MARKS, SHOW_X_Y_ONLY, SHOW_Z_AXIS_UP, SPHERE_DIVISIONS, TICK_MARK_LENGTH, TICK_MARK_RADIUS, VECTOR_POINT_HEIGHT, VECTOR_POINT_RADIUS, VECTOR_RADIUS, VERTEX_SIZE
Constructor and Description |
---|
Mesh3D(javafx.scene.shape.TriangleMesh mesh,
javafx.geometry.Point3D p)
Constructs a Mesh3D object given a Mesh3D and its location.
|
Mesh3D(javafx.scene.shape.TriangleMesh mesh,
javafx.geometry.Point3D p,
double xr,
double yr,
double zr)
Constructs a Mesh3D object given a TriangleMesh, its location and
x, y, z rotations.
|
Mesh3D(javafx.scene.shape.TriangleMesh mesh,
javafx.geometry.Point3D p,
double xr,
double yr,
double zr,
javafx.scene.paint.PhongMaterial m)
Constructs a Mesh3D object given a TriangleMesh, its location,
x, y, z rotations and PhongMaterial.
|
Modifier and Type | Method and Description |
---|---|
javafx.scene.shape.CullFace |
getCullFace()
Gets the Mesh3D CullFace property
|
javafx.scene.shape.DrawMode |
getDrawMode()
Gets the Mesh3D DrawMode property
|
javafx.scene.paint.PhongMaterial |
getMaterial()
Gets the Mesh3D PhongMaterial property
|
javafx.scene.shape.TriangleMesh |
getMesh()
Gets the TriangleMesh
|
javafx.geometry.Point3D |
getP()
Gets the Mesh3D location
|
double |
getXr()
Gets the Mesh3D x axis rotation
|
double |
getYr()
Gets the Mesh3D y axis rotation
|
double |
getZr()
Gets the Mesh3D z axis rotation
|
void |
setCullFace(javafx.scene.shape.CullFace cf)
Sets the Mesh3D CullFace property
|
void |
setDrawMode(javafx.scene.shape.DrawMode dm)
Sets the Mesh3D DrawMode property
|
void |
setMaterial(javafx.scene.paint.PhongMaterial m)
Sets the Mesh3D PhongMaterial property
|
java.lang.String |
toString()
Returns a String for printing all Mesh3D values
|
public Mesh3D(javafx.scene.shape.TriangleMesh mesh, javafx.geometry.Point3D p)
mesh
- TriangleMeshp
- Point3D location of the Mesh3D object in user coordinatespublic Mesh3D(javafx.scene.shape.TriangleMesh mesh, javafx.geometry.Point3D p, double xr, double yr, double zr)
mesh
- TriangleMeshp
- Point3D location of the Mesh3D object in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axispublic Mesh3D(javafx.scene.shape.TriangleMesh mesh, javafx.geometry.Point3D p, double xr, double yr, double zr, javafx.scene.paint.PhongMaterial m)
mesh
- TriangleMeshp
- Point3D location of the Mesh3D object in user coordinatesxr
- Rotation in degrees about the x axisyr
- Rotation in degrees about the y axiszr
- Rotation in degrees about the z axism
- PhongMaterial determining Mesh3D object colorpublic javafx.scene.shape.TriangleMesh getMesh()
public javafx.geometry.Point3D getP()
public double getXr()
public double getYr()
public double getZr()
public javafx.scene.paint.PhongMaterial getMaterial()
public void setMaterial(javafx.scene.paint.PhongMaterial m)
m
- PhongMaterial property of the Mesh3Dpublic javafx.scene.shape.DrawMode getDrawMode()
public void setDrawMode(javafx.scene.shape.DrawMode dm)
dm
- DrawMode property of the Mesh3Dpublic javafx.scene.shape.CullFace getCullFace()
public void setCullFace(javafx.scene.shape.CullFace cf)
cf
- CullFace property of the Mesh3Dpublic java.lang.String toString()
toString
in class java.lang.Object