Package com.solibri.geometry.primitive3d
Interface Triangle3d
- All Known Subinterfaces:
- MTriangle3d
Read-only interface for 3-dimensional triangles.
- Since:
- 9.10.2
- 
Method SummaryModifier and TypeMethodDescriptionstatic Triangle3dCreates a new instance.static Triangle3dcreate(Triangle3d other) Creates a new instance.static Triangle3dCreates a new instance.Returns the axis-aligned bounding box of this triangle.Returns the cross product of this triangle.Returns the first point of the triangle.Returns the second point of the triangle.Returns the third point of the triangle.Returns an optional with the intersection point between the triangle and the line if present, otherwise an empty optional.Returns an optional with the intersection point between the triangle and the ray if present, otherwise an empty optional.booleanintersects(Line3d line) Returns true if the triangle intersects the given line.booleanintersects(MTriangle3d triangle) Returns true if the triangles intersect, false otherwise.booleanintersects(Ray3d ray) Returns true if the triangle intersects the given ray.Methods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface com.solibri.geometry.primitive3d.Polygon3dcontains, contains, edgesIntersect, getArea, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
- 
Method Details- 
getFirstPointVector3d getFirstPoint()Returns the first point of the triangle.- Returns:
- the first point of the triangle
- Since:
- 9.10.2
 
- 
getSecondPointVector3d getSecondPoint()Returns the second point of the triangle.- Returns:
- the second point of the triangle
- Since:
- 9.10.2
 
- 
getThirdPointVector3d getThirdPoint()Returns the third point of the triangle.- Returns:
- the third point of the triangle
- Since:
- 9.10.2
 
- 
getCrossProductMVector3d getCrossProduct()Returns the cross product of this triangle. The resulting vector is not normalized.- Returns:
- the cross product resulting vector
- Since:
- 9.10.2
 
- 
intersectsReturns true if the triangle intersects the given ray.- Parameters:
- ray- the ray
- Returns:
- true if they intersect, false otherwise
- Since:
- 9.10.2
 
- 
intersectReturns an optional with the intersection point between the triangle and the ray if present, otherwise an empty optional.- Parameters:
- ray- the ray
- Returns:
- an optional with the intersection point if existing, otherwise an empty optional
- Since:
- 9.10.2
 
- 
intersectsReturns true if the triangle intersects the given line.- Parameters:
- line- the line
- Returns:
- true if they intersect, false otherwise
- Since:
- 9.10.2
 
- 
intersectReturns an optional with the intersection point between the triangle and the line if present, otherwise an empty optional.- Parameters:
- line- the line
- Returns:
- an optional with the intersection point if existing, otherwise an empty optional
- Since:
- 9.10.2
 
- 
getBoundingBoxAABB3d getBoundingBox()Returns the axis-aligned bounding box of this triangle.- Specified by:
- getBoundingBoxin interface- Polygon3d
- Returns:
- the axis-aligned bounding box of this triangle
- Since:
- 9.10.2
 
- 
intersectsReturns true if the triangles intersect, false otherwise.- Parameters:
- triangle- the triangle
- Returns:
- true if the triangles intersect, false otherwise
- Since:
- 9.10.2
 
- 
createCreates 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
 
- 
createCreates 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
 
- 
createCreates a new instance.- Parameters:
- other- the other triangle
- Returns:
- the newly created instance
- Since:
- 9.10.2
 
 
-