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 SummaryModifier and TypeMethodDescriptionstatic Rectangle3dcreate(Rectangle3d other) Creates a new instance.static Rectangle3dCreates a new instance from the given points.Returns the longer segment of the rectangle.doubleReturns the length of the longer rectangle segment.Returns the longer segments of the rectangle.Returns the shorter segment of the rectangle.doubleReturns the length of the shorter rectangle segment.Returns the shorter segments of the rectangle.Methods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface com.solibri.geometry.primitive3d.Polygon3dcontains, contains, edgesIntersect, getArea, getBoundingBox, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
- 
Method Details- 
getLongerRectangleSegmentSegment3d getLongerRectangleSegment()Returns the longer segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
 
- 
getLongerRectangleSegmentsReturns the longer segments of the rectangle.- Returns:
- segments list with the longer segments
- Since:
- 9.10.2
 
- 
getLongerRectangleSegmentLengthdouble getLongerRectangleSegmentLength()Returns the length of the longer rectangle segment.- Returns:
- the length of the longer segment
- Since:
- 9.10.2
 
- 
getShorterRectangleSegmentSegment3d getShorterRectangleSegment()Returns the shorter segment of the rectangle.- Returns:
- segment
- Since:
- 9.10.2
 
- 
getShorterRectangleSegmentsReturns the shorter segments of the rectangle.- Returns:
- segments list with the shorter segments
- Since:
- 9.10.2
 
- 
getShorterRectangleSegmentLengthdouble getShorterRectangleSegmentLength()Returns the length of the shorter rectangle segment.- Returns:
- the length of the shorter segment
- Since:
- 9.10.2
 
- 
createCreates 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
 
- 
createCreates a new instance.- Parameters:
- other- the other rectangle
- Returns:
- the newly created instance
- Since:
- 9.10.2
 
 
-