public class PathObject
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected static float |
insideDistance |
protected static Logger |
log |
protected static boolean |
logAll |
Constructor and Description |
---|
PathObject() |
PathObject(java.lang.String description,
float avatarWidth,
java.util.List<AOVector> boundaryCorners,
java.util.List<java.util.List<AOVector>> obstacleCorners)
Generate the pathing metadata for avatars of the given width
moving inside the boundary around the obstacles.
|
PathObject(java.lang.String modelName,
java.lang.String type,
int firstTerrainIndex,
PathPolygon boundingPolygon,
java.util.List<PathPolygon> polygons,
java.util.List<PathArc> portals,
java.util.List<PathArc> arcs) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.List<PathPolygon> |
aggregateTriangles(java.util.List<PathPolygon> triangles)
Aggregate triangles into convex polygons.
|
java.lang.Object |
clone() |
PathIntersection |
closestIntersection(AOVector loc1,
AOVector loc2) |
protected void |
createPolygonMap() |
protected static java.util.List<PathArc> |
discoverArcs(java.util.List<PathPolygon> polygons)
A quadruple loop over the polygon edges, looking for common
ones to find arcs between polygons.
|
int |
findCVPolygonAtLocation(AOVector loc) |
int |
findTerrainPolygonAtLocation(AOVector loc) |
protected void |
findTerrainPolygonsAtCorners() |
java.util.List<PathArc> |
getArcs() |
PathPolygon |
getBoundingPolygon() |
AOVector |
getCenter() |
int |
getClosestCornerToPoint(AOVector loc) |
PathPolygon |
getCVPolygon(int polyIndex) |
int |
getFirstTerrainIndex() |
java.lang.String |
getModelName() |
PathPolygon |
getPolygon(int polyIndex) |
java.util.List<PathArc> |
getPolygonArcs(int polyIndex) |
java.util.List<PathPolygon> |
getPolygons() |
java.util.List<PathArc> |
getPortals() |
int |
getRadius() |
PathPolygon |
getTerrainPolygon(int polyIndex) |
PathPolygon |
getTerrainPolygonAtCorner(int cornerNumber) |
java.lang.String |
getType() |
boolean |
isTerrainPolygon(int polyIndex) |
java.lang.String |
toString() |
protected static float insideDistance
protected static final Logger log
protected static boolean logAll
public PathObject()
public PathObject(java.lang.String modelName, java.lang.String type, int firstTerrainIndex, PathPolygon boundingPolygon, java.util.List<PathPolygon> polygons, java.util.List<PathArc> portals, java.util.List<PathArc> arcs)
protected static java.util.List<PathPolygon> aggregateTriangles(java.util.List<PathPolygon> triangles)
protected static java.util.List<PathArc> discoverArcs(java.util.List<PathPolygon> polygons)
protected void findTerrainPolygonsAtCorners()
public PathPolygon getCVPolygon(int polyIndex)
public PathPolygon getTerrainPolygon(int polyIndex)
public boolean isTerrainPolygon(int polyIndex)
public PathPolygon getTerrainPolygonAtCorner(int cornerNumber)
public int getClosestCornerToPoint(AOVector loc)
public PathPolygon getPolygon(int polyIndex)
protected void createPolygonMap()
public int findCVPolygonAtLocation(AOVector loc)
public int findTerrainPolygonAtLocation(AOVector loc)
public PathIntersection closestIntersection(AOVector loc1, AOVector loc2)
public java.util.List<PathArc> getPolygonArcs(int polyIndex)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getModelName()
public java.lang.String getType()
public int getFirstTerrainIndex()
public AOVector getCenter()
public int getRadius()
public PathPolygon getBoundingPolygon()
public java.util.List<PathPolygon> getPolygons()
public java.util.List<PathArc> getPortals()
public java.util.List<PathArc> getArcs()