Package com.solibri.geometry.primitive3d
Interface MPolygon3d
- All Known Subinterfaces:
MRectangle3d
,MTriangle3d
Interface for handling simple polygons without holes in 3-dimensional space.
- Since:
- 9.10.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic MPolygon3d
Creates a polygon with the contents deep copied from the given polygon.static MPolygon3d
Creates a polygon with the given vertices.void
Transforms this polygon using the given matrix.void
Translates this polygon by the given vector.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
-
translate
Translates this polygon by the given vector.- Parameters:
translator
- the vector by which this polygon is translated- Since:
- 9.10.2
-
transform
Transforms this polygon using the given matrix.- Parameters:
transformMatrix
- the matrix that defines the transform- Since:
- 9.10.2
-
create
Creates a polygon with the contents deep copied from the given polygon. The returned polygon does not take ownership of the given polygon.- Parameters:
polygon
- the polygon whose contents are deep copied into the returned polygon- Returns:
- a polygon with the contents deep copied from the given polygon
- Since:
- 9.10.2
-
create
Creates a polygon with the given vertices. The returned polygon does not take ownership of the given vertices.- Parameters:
vertices
- the vertices used for creating the returned polygon- Returns:
- a polygon with the given vertices
- Since:
- 9.10.2
-