Package | Description |
---|---|
com.solibri.geometry.mesh | |
com.solibri.geometry.primitive2d | |
com.solibri.smc.api.model.components |
Modifier and Type | Method and Description |
---|---|
Optional<Segment2d> |
TriangleMesh.shortest2dPathInXYPlaneProjectionTo(TriangleMesh other)
Returns the shortest 2D path from the projection of this
TriangleMesh to the projection of another
TriangleMesh in the XY-plane, if such path exists. |
Optional<Segment2d> |
TriangleMesh.shortest2dPathInXYPlaneProjectionTo(Vector3d point)
Returns the shortest 2D path from the projection of this
TriangleMesh to the projection of a
point in the XY-plane, if such path exists. |
Modifier and Type | Interface and Description |
---|---|
interface |
MSegment2d
Interface for handling segments in the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
static Segment2d |
Segment2d.create(Vector2d startPoint,
Vector2d endPoint)
Creates an new instance.
|
Segment2d |
Rectangle2d.getLongerRectangleSegment()
Returns the longer segment of the rectangle.
|
Segment2d |
Rectangle2d.getShorterRectangleSegment()
Returns the shorter segment of the rectangle.
|
Segment2d |
Segment2d.shortestSegmentBetween(Segment2d segment)
Returns the shortest segment from this segment to the given segment in the XY-plane.
|
Segment2d |
Polygon2d.shortestSegmentTo(Polygon2d polygon)
Returns the shortest segment between this polygon and the given polygon.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Segment2d> |
Polygon2d.getEdgeIterator()
Returns an iterator that iterates through the edges of this polygon.
|
List<Segment2d> |
AABB2d.getEdges()
Returns the edges of this axis-aligned bounding box in counter clockwise
order.
|
List<Segment2d> |
Rectangle2d.getLongerRectangleSegments()
Returns the longer segments of the rectangle.
|
List<Segment2d> |
Rectangle2d.getShorterRectangleSegments()
Returns the shorter segments of the rectangle.
|
static Comparator<Segment2d> |
Segment2d.lengthComparator()
Returns a comparator that compares non-null Segments by their length in
the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
default double |
Polygon2d.distance(Segment2d segment)
Returns the minimum distance between this polygon and the given segment.
|
double |
Segment2d.distance(Segment2d other)
Returns the minimum distance in the XY-plane between this and the given
segment.
|
double |
Polygon2d.distanceSquared(Segment2d segment)
Returns the square of the minimum distance between this polygon and the
given segment.
|
double |
Segment2d.distanceSquared(Segment2d other)
Returns the square of the minimum distance in the XY-plane between this
and the given segment.
|
default boolean |
Segment2d.equalsWithTolerance(Segment2d other,
double tolerance)
Returns true if the start and end points of this segment are within
tolerance of the start and end points of other in the XY-plane.
|
Optional<MVector2d> |
Segment2d.intersect(Segment2d other)
Returns the point of intersection between this segment and other in the
XY-plane.
|
Collection<MVector2d> |
Polygon2d.intersectEdges(Segment2d segment)
Returns all intersection points between the edges of this polygon and the
given segment.
|
default boolean |
Segment2d.intersects(Segment2d other)
Returns true if this segment and other intersect in the XY-plane,
otherwise returns false.
|
Segment2d |
Segment2d.shortestSegmentBetween(Segment2d segment)
Returns the shortest segment from this segment to the given segment in the XY-plane.
|
Modifier and Type | Method and Description |
---|---|
Segment2d |
Flight.getBottomSegment()
Returns the flight bottom 2D segment.
|
Segment2d |
Flight.getTopSegment()
Returns the flight top 2D segment.
|
Copyright © 2019 Solibri, Inc.. All rights reserved.