Implement Polygon::ToPolyhedron
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user