Package com.solibri.geometry.primitive3d
Interface MPolygon3d
-
- All Known Subinterfaces:
MRectangle3d
,MTriangle3d
public interface MPolygon3d extends Polygon3d
Interface for handling simple polygons without holes in 3-dimensional space.- Since:
- 9.10.2
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MPolygon3d
create(Polygon3d polygon)
Creates a polygon with the contents deep copied from the given polygon.static MPolygon3d
create(List<? extends Vector3d> vertices)
Creates a polygon with the given vertices.void
transform(Matrix4d transformMatrix)
Transforms this polygon using the given matrix.void
translate(Vector3d translator)
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 Detail
-
translate
void translate(Vector3d translator)
Translates this polygon by the given vector.- Parameters:
translator
- the vector by which this polygon is translated- Since:
- 9.10.2
-
transform
void transform(Matrix4d transformMatrix)
Transforms this polygon using the given matrix.- Parameters:
transformMatrix
- the matrix that defines the transform- Since:
- 9.10.2
-
create
static MPolygon3d create(Polygon3d polygon)
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
static MPolygon3d create(List<? extends Vector3d> vertices)
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
-
-