edu.mines.jtk.mesh
Class TriMesh.PointLocation

java.lang.Object
  extended by edu.mines.jtk.mesh.TriMesh.PointLocation
Enclosing class:
TriMesh

public static class TriMesh.PointLocation
extends java.lang.Object

The location of a point relative to the mesh. A point is either on a node, on an edge, inside a triangle, or outside the mesh.


Method Summary
 TriMesh.Edge edge()
          Returns the edge.
 boolean isInside()
          Determines whether this location is inside a tri.
 boolean isOnEdge()
          Determines whether this location is on an edge.
 boolean isOnNode()
          Determines whether this location is on a node.
 boolean isOutside()
          Determines whether this location is outside the mesh.
 TriMesh.Node node()
          Returns the node.
 TriMesh.Tri tri()
          Returns the tri corresponding to the point location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isOnNode

public boolean isOnNode()
Determines whether this location is on a node.

Returns:
true, if on a node; false, otherwise.

isOnEdge

public boolean isOnEdge()
Determines whether this location is on an edge.

Returns:
true, if on an edge; false, otherwise.

isInside

public boolean isInside()
Determines whether this location is inside a tri.

Returns:
true, if inside a tri; false, otherwise.

isOutside

public boolean isOutside()
Determines whether this location is outside the mesh.

Returns:
true, if outside the mesh; false, otherwise.

node

public TriMesh.Node node()
Returns the node.

Returns:
the node; null, if not on a node.

edge

public TriMesh.Edge edge()
Returns the edge.

Returns:
the edge; null, if not on an edge.

tri

public TriMesh.Tri tri()
Returns the tri corresponding to the point location. If the point location is on a node or edge, the tri is one that references that node or edge. If the point location is outside the mesh, the tri is one that is visible from the point.

Returns:
the tri.