public class Polygon3dFeature
extends java.lang.Object
| Constructor and Description | 
|---|
| Polygon3dFeature() | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getDistance()Returns the distance to the nearest feature, or -1 if no feature has been
 determined yet. | 
| Point3d | getNearestPoint(Point3d px)Returns the nearest point on the nearest fearure, or  nullif no feature has been determined yet. | 
| Point3d | getVertex(int idx)Returns the  idx-th polygon vertex associated with this
 feature. | 
| Vertex3dNode | getVertexNode() | 
| int | isOutside(boolean clockwise) | 
| int | numVertices()Returns the number of polygon vertices associated with this feature:
 
  0: no feature is currently defined
  1: feature is a single polygon vertex; no edges have been encountered
  2: feature is an edge
  3: feature is the vertex indexed by 1, with 0 and 2 indexing
 the previous and following vertices
  | 
| void | print(java.lang.String msg)Prints out a description of this feature. | 
| void | setNearestEdge(Point3d pa,
              Point3d pb,
              boolean outsideIfClockwise) | 
| void | setNearestVertex(Point3d pa,
                Point3d pb,
                Point3d pc,
                boolean outsideIfClockwise) | 
public int numVertices()
public Point3d getVertex(int idx)
idx-th polygon vertex associated with this
 feature.idx - vertex index. Should be less than the value returned by
 numVertices().idx-th polygon vertex. Value is a reference
 and should not be modified.public Vertex3dNode getVertexNode()
public double getDistance()
public Point3d getNearestPoint(Point3d px)
null
 if no feature has been determined yet.public void print(java.lang.String msg)
msg - optional message linepublic void setNearestVertex(Point3d pa, Point3d pb, Point3d pc, boolean outsideIfClockwise)
public int isOutside(boolean clockwise)