Package com.solibri.geometry.primitive3d
Interface Rectangle3d
- All Known Subinterfaces:
MRectangle3d
Read-only interface for handling rectangles in 3-dimensional space.
- Since:
- 9.10.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle3d
create
(Rectangle3d other) Creates a new instance.static Rectangle3d
Creates a new instance from the given points.Returns the longer segment of the rectangle.double
Returns the length of the longer rectangle segment.Returns the longer segments of the rectangle.Returns the shorter segment of the rectangle.double
Returns the length of the shorter rectangle segment.Returns the shorter segments of the rectangle.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.solibri.geometry.primitive3d.Polygon3d
contains, contains, edgesIntersect, getArea, getBoundingBox, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
-
Method Details
-
getLongerRectangleSegment
Segment3d getLongerRectangleSegment()Returns the longer segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
-
getLongerRectangleSegments
Returns the longer segments of the rectangle.- Returns:
- segments list with the longer segments
- Since:
- 9.10.2
-
getLongerRectangleSegmentLength
double getLongerRectangleSegmentLength()Returns the length of the longer rectangle segment.- Returns:
- the length of the longer segment
- Since:
- 9.10.2
-
getShorterRectangleSegment
Segment3d getShorterRectangleSegment()Returns the shorter segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
-
getShorterRectangleSegments
Returns the shorter segments of the rectangle.- Returns:
- segments list with the shorter segments
- Since:
- 9.10.2
-
getShorterRectangleSegmentLength
double getShorterRectangleSegmentLength()Returns the length of the shorter rectangle segment.- Returns:
- the length of the shorter segment
- Since:
- 9.10.2
-
create
Creates a new instance from the given points.- Parameters:
vertices
- list of points to create the rectangle- Returns:
- a Rectangle3d instance
- Throws:
IllegalArgumentException
- if the points do not form a rectangle- Since:
- 9.10.2
-
create
Creates a new instance.- Parameters:
other
- the other rectangle- Returns:
- the newly created instance
- Since:
- 9.10.2
-