Implement Polygon::ToPolyhedron

This commit is contained in:
2024-07-10 14:19:16 -04:00
parent 2f9cb5dd87
commit 68c6f6c9f8
2 changed files with 23 additions and 2 deletions

View File

@@ -80,6 +80,14 @@ namespace J3ML::Geometry {
Vector3 ClosestPoint(const LineSegment &lineSegment, Vector3 *lineSegmentPt) const;
Vector3 ClosestPoint(const Vector3 &point) const;
/// Converts this Polygon to a Polyhedron representation.
/** This function will create a Polyhedron with two faces, one for the front face of this Polygon,
and one for the back face.
@todo Add ToPolyhedron(float polygonThickness)
@see Triangulate(), MinimalEnclosingAABB(). */
Polyhedron ToPolyhedron() const;
protected: