|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.von_gagern.martin.confoo.mesh.flat.Mesh2D
public class Mesh2D
A 2D triangle mesh.
Vertices of this mesh are identified by their coordinates, not object identity.
| Constructor Summary | |
|---|---|
Mesh2D(Collection<? extends CorneredTriangle<? extends Point2D>> mesh)
Construct 2D mesh from collection of triangles. |
|
Mesh2D(LocatedMesh<V> mesh)
Construct 2D mesh from a located mesh. |
|
| Method Summary | |
|---|---|
double |
edgeLength(Vertex2D v1,
Vertex2D v2)
Determine edge length. |
Shape |
getBoundary()
Retrieve boundary shape. |
Set<Edge2D> |
getBoundaryEdges()
Retrieve collection of all boundary edges. |
Set<Edge2D> |
getEdges()
Retrieve collection of all edges. |
Set<Edge2D> |
getInteriorEdges()
Retrieve collection of all interior edges. |
List<Triangle2D> |
getTriangles()
Retrieve collection of triangles. |
double |
getX(Vertex2D v)
Get x coordinate of vertex. |
double |
getY(Vertex2D v)
Get y coordinate of vertex. |
double |
getZ(Vertex2D v)
Get z coordinate of vertex. |
Iterator<Triangle2D> |
iterator()
Return iterator over all triangles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mesh2D(LocatedMesh<V> mesh)
mesh - the mesh to be copiedpublic Mesh2D(Collection<? extends CorneredTriangle<? extends Point2D>> mesh)
mesh - the triangles making up the mesh| Method Detail |
|---|
public Iterator<Triangle2D> iterator()
iterator in interface Iterable<Triangle2D>iterator in interface CombinatoricMesh<Vertex2D>Iterable.iterator(),
MeshIterator
public double edgeLength(Vertex2D v1,
Vertex2D v2)
edgeLength in interface MetricMesh<Vertex2D>v1 - one vertexv2 - a second vertex
public double getX(Vertex2D v)
getX in interface LocatedMesh<Vertex2D>v - a vertex
vpublic double getY(Vertex2D v)
getY in interface LocatedMesh<Vertex2D>v - a vertex
vpublic double getZ(Vertex2D v)
getZ in interface LocatedMesh<Vertex2D>v - a vertex
public List<Triangle2D> getTriangles()
public Set<Edge2D> getEdges()
public Set<Edge2D> getInteriorEdges()
public Set<Edge2D> getBoundaryEdges()
public Shape getBoundary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||