Package com.solibri.geometry.primitive3d
Interface MTriangle3d
- 
- All Superinterfaces:
- Iterable<Vector3d>,- MPolygon3d,- Polygon3d,- Triangle3d
 
 public interface MTriangle3d extends Triangle3d, MPolygon3d Interface that represents a 3-dimensional triangle.- Since:
- 9.10.2
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MTriangle3dcreate()Creates a new instance with all points in the origin.static MTriangle3dcreate(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint)Creates a new instance.static MTriangle3dcreate(Triangle3d other)Creates a new instance.static MTriangle3dcreate(List<? extends Vector3d> points)Creates a new instance.voidsetFirstPoint(Vector3d firstPoint)Sets the first point of this triangle to the value of the given point.voidsetPoints(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint)Sets the given points to the triangle.voidsetSecondPoint(Vector3d secondPoint)Sets the second point of this triangle to the value of the given point.voidsetThirdPoint(Vector3d thirdPoint)Sets the third point of this triangle to the value of the given point.- 
Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
 - 
Methods inherited from interface com.solibri.geometry.primitive3d.MPolygon3dtransform, translate
 - 
Methods inherited from interface com.solibri.geometry.primitive3d.Polygon3dcontains, contains, edgesIntersect, getArea, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
 - 
Methods inherited from interface com.solibri.geometry.primitive3d.Triangle3dgetBoundingBox, getCrossProduct, getFirstPoint, getSecondPoint, getThirdPoint, intersect, intersect, intersects, intersects, intersects
 
- 
 
- 
- 
- 
Method Detail- 
setFirstPointvoid setFirstPoint(Vector3d firstPoint) Sets the first point of this triangle to the value of the given point. This triangle does not take ownership of the given point.- Parameters:
- firstPoint- the value that is set to be the first point of this triangle
- Since:
- 9.10.2
 
 - 
setSecondPointvoid setSecondPoint(Vector3d secondPoint) Sets the second point of this triangle to the value of the given point. This triangle does not take ownership of the given point.- Parameters:
- secondPoint- the value that is set to be the second point of this triangle
- Since:
- 9.10.2
 
 - 
setThirdPointvoid setThirdPoint(Vector3d thirdPoint) Sets the third point of this triangle to the value of the given point. This triangle does not take ownership of the given point.- Parameters:
- thirdPoint- the value that is set to be third point of this triangle
- Since:
- 9.10.2
 
 - 
setPointsvoid setPoints(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint) Sets the given points to the triangle.- Parameters:
- firstPoint- the first point
- secondPoint- the second point
- thirdPoint- the third point
- Since:
- 9.10.2
 
 - 
createstatic MTriangle3d create(List<? extends Vector3d> points) Creates a new instance.- Parameters:
- points- list of points
- Returns:
- the newly created instance
- Throws:
- IllegalArgumentException- if the list does not contain exactly three points
- Since:
- 9.10.2
 
 - 
createstatic MTriangle3d create(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint) Creates a new instance.- Parameters:
- firstPoint- the first point
- secondPoint- the second point
- thirdPoint- the thirdPoint
- Returns:
- the newly created instance
- Throws:
- IllegalArgumentException- if the list does not contain exactly three points
- Since:
- 9.10.2
 
 - 
createstatic MTriangle3d create(Triangle3d other) Creates a new instance.- Parameters:
- other- the other triangle
- Returns:
- the newly created instance
- Since:
- 9.10.2
 
 - 
createstatic MTriangle3d create() Creates a new instance with all points in the origin.- Returns:
- the newly created instance
- Since:
- 9.10.2
 
 
- 
 
-