|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Mesh
Represents an object in 3D space expressed by a polygon mesh.
| Inner Class Summary | |
static class |
Mesh.Polygon
Represents one polygon in the mesh. |
static class |
Mesh.SameSurface
Represents SameSurface |
| Field Summary | |
protected CoorSys |
coorSys
Represents the coordinate system used. |
protected String |
name
The name of the mesh. |
protected Mesh.Polygon[] |
polygons
A list of PolygonMesh.Polygon objects that defines the polygons in the mesh. |
static CoorSys |
REAL_WORLD
RealWorld coordinates |
protected Mesh.SameSurface[] |
sameSurface
|
protected Point3D[] |
vertices
A list containing Point3D objects that are all the vertices in the mesh. |
| Constructor Summary | |
(package private) |
Mesh(String name)
Constructs the mesh object. |
(package private) |
Mesh(String name,
Point3D[] vertices,
Mesh.Polygon[] poly)
Constructs the mesh object. |
| Method Summary | |
Object |
clone()
|
boolean |
equals(Object o)
True if the name of this mesh is equal to the name of the other mesh. |
CoorSys |
getCoorSys()
Returns the coordinate system associated with the mesh. |
String |
getName()
Returns the name of the polygon mesh. |
Mesh.Polygon[] |
getPolygons()
returns the array of polygons in the mesh. |
Point3D[] |
getVertices()
Returns the array of points that makes up the mesh. |
int |
hashCode()
Returns the hash code for the Mesh's name. |
void |
setCoorSys(CoorSys cs)
Sets the coordinate system. |
void |
setPolygons(Mesh.Polygon[] poly)
Sets the polygon arrays to the mesh |
void |
setSameSurface(Mesh.SameSurface[] ss)
|
void |
setVertices(Point3D[] pts)
Sets the array of vertices of the mesh. |
String |
toString()
Returns the name of the polygon mesh. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected String name
protected Point3D[] vertices
Point3Dprotected Mesh.Polygon[] polygons
Mesh.Polygonprotected Mesh.SameSurface[] sameSurface
protected CoorSys coorSys
public static final CoorSys REAL_WORLD
| Constructor Detail |
Mesh(String name)
name - the name of the mesh object.
Mesh(String name,
Point3D[] vertices,
Mesh.Polygon[] poly)
name - the name of the mesh object.vertices - the points that make up the mesh.poly - the polygons of the mesh.| Method Detail |
public void setVertices(Point3D[] pts)
public int hashCode()
public boolean equals(Object o)
getname().equals(o.getName())public void setPolygons(Mesh.Polygon[] poly)
public void setCoorSys(CoorSys cs)
cs - the new coordinate system.public void setSameSurface(Mesh.SameSurface[] ss)
public CoorSys getCoorSys()
public Point3D[] getVertices()
public Mesh.Polygon[] getPolygons()
public String getName()
public String toString()
public Object clone()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||