|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.geometry.TriangleMesh
public class TriangleMesh
A mesh of triangles, sharing some vertices
Field Summary | |
---|---|
private Set<LineSeg3D> |
edges
Edges |
private Set<Triangle> |
triangles
Triangles |
private Set<Coord3D> |
vertices
Vertices |
Constructor Summary | |
---|---|
TriangleMesh()
|
Method Summary | |
---|---|
void |
add(Triangle t)
Add a triangle to the mesh |
void |
clear()
Clear all contents |
Collection<Triangle> |
getAdjacentTriangles(Triangle t)
Get any triangles adjacent to the given one (sharing edges) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Set<LineSeg3D> edges
private final Set<Triangle> triangles
private final Set<Coord3D> vertices
Constructor Detail |
---|
public TriangleMesh()
Method Detail |
---|
public void add(Triangle t)
t
- the new trianglepublic void clear()
public Collection<Triangle> getAdjacentTriangles(Triangle t)
t
- a triangle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |