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) booleanDetermines whether the specified point lies on tthis edge.booleanDetermines whether the specified point lies on tthis edge.booleanfromPolygon(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()inthashCode()toPolygons(List<Edge> boundaryEdges, Plane plane) toVertices(List<Edge> edges)
-
Field Details
-
KEY_POLYGON_HOLES
- See Also:
-
-
Constructor Details
-
Edge
-
-
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:
trueif the specified point lies on this line segment;falseotherwise
-
contains
Determines whether the specified point lies on tthis edge.- Parameters:
p- point to check- Returns:
trueif the specified point lies on this line segment;falseotherwise
-
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
-