public class Edge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_POLYGON_HOLES |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Polygon> |
_toPolygons(java.util.List<Edge> boundaryEdges,
eu.mihosoft.jcsg.Plane plane) |
static java.util.List<Polygon> |
boundaryPathsWithHoles(java.util.List<Polygon> boundaryPaths) |
static java.util.List<Polygon> |
boundaryPolygons(CSG csg) |
boolean |
contains(eu.mihosoft.vvecmath.Vector3d p)
Determines whether the specified point lies on tthis edge.
|
boolean |
contains(eu.mihosoft.vvecmath.Vector3d p,
double TOL)
Determines whether the specified point lies on tthis edge.
|
boolean |
equals(java.lang.Object obj) |
static java.util.List<Edge> |
fromPolygon(Polygon poly) |
java.util.Optional<eu.mihosoft.vvecmath.Vector3d> |
getClosestPoint(Edge e)
Returns the the point of this edge that is closest to the specified edge.
|
eu.mihosoft.vvecmath.Vector3d |
getDirection() |
java.util.Optional<eu.mihosoft.vvecmath.Vector3d> |
getIntersection(Edge e)
Returns the intersection point between this edge and the specified edge.
|
Vertex |
getP1() |
Vertex |
getP2() |
int |
hashCode() |
static java.util.List<eu.mihosoft.vvecmath.Vector3d> |
toPoints(java.util.List<Edge> edges) |
static java.util.List<Polygon> |
toPolygons(java.util.List<Edge> boundaryEdges,
eu.mihosoft.jcsg.Plane plane) |
static java.util.List<Vertex> |
toVertices(java.util.List<Edge> edges) |
public static final java.lang.String KEY_POLYGON_HOLES
public Vertex getP1()
public Vertex getP2()
public static java.util.List<eu.mihosoft.vvecmath.Vector3d> toPoints(java.util.List<Edge> edges)
public static java.util.List<Polygon> toPolygons(java.util.List<Edge> boundaryEdges, eu.mihosoft.jcsg.Plane plane)
public static java.util.List<Polygon> boundaryPathsWithHoles(java.util.List<Polygon> boundaryPaths)
public static java.util.List<Polygon> _toPolygons(java.util.List<Edge> boundaryEdges, eu.mihosoft.jcsg.Plane plane)
public boolean contains(eu.mihosoft.vvecmath.Vector3d p, double TOL)
p
- point to checkTOL
- tolerancetrue
if the specified point lies on this line
segment; false
otherwisepublic boolean contains(eu.mihosoft.vvecmath.Vector3d p)
p
- point to checktrue
if the specified point lies on this line
segment; false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public eu.mihosoft.vvecmath.Vector3d getDirection()
public java.util.Optional<eu.mihosoft.vvecmath.Vector3d> getClosestPoint(Edge e)
e
- the edge to checkpublic java.util.Optional<eu.mihosoft.vvecmath.Vector3d> getIntersection(Edge e)
e
- edge to intersect