Contents
Class Edge
java.lang.Object
eu.mihosoft.vrl.v3d.Edge
- Author:
- miho
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_toPolygons
(List<Edge> boundaryEdges, Plane plane) boundaryPathsWithHoles
(List<Polygon> boundaryPaths) boundaryPolygons
(CSG csg) boolean
Determines whether the specified point lies on tthis edge.boolean
Determines whether the specified point lies on tthis edge.boolean
fromPolygon
(Polygon poly) Returns the the point of this edge that is closest to the specified edge.Returns the intersection point between this edge and the specified edge.getP1()
getP2()
int
hashCode()
toPolygons
(List<Edge> boundaryEdges, Plane plane) toVertices
(List<Edge> edges)
-
Field Details
-
Constructor Details
-
Method Details
-
getP1
- Returns:
- the p1
-
getP2
- Returns:
- the p2
-
fromPolygon
-
toVertices
-
toPoints
-
toPolygons
-
boundaryPathsWithHoles
-
_toPolygons
-
contains
Determines whether the specified point lies on tthis edge.- Parameters:
p
- point to checkTOL
- tolerance- Returns:
true
if the specified point lies on this line segment;false
otherwise
-
contains
Determines whether the specified point lies on tthis edge.- Parameters:
p
- point to check- Returns:
true
if the specified point lies on this line segment;false
otherwise
-
hashCode
-
equals
-
getDirection
-
getClosestPoint
-
getIntersection
Returns the intersection point between this edge and the specified edge. NOTE: returns an empty optional if the edges are parallel or if the intersection point is not inside the specified edge segment- Parameters:
e
- edge to intersect- Returns:
- the intersection point between this edge and the specified edge
-
boundaryPolygons
-