Class SplittablePolygon

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< SplittablePolygon >

Class Documentation

class legion::physics::SplittablePolygon : public std::enable_shared_from_this<SplittablePolygon>

Public Functions

SplittablePolygon(std::vector<std::shared_ptr<MeshHalfEdge>> &pEdgesInMesh, math::vec3 normal)
std::vector<std::shared_ptr<MeshHalfEdge>> &GetMeshEdges()
int CountBoundary()
void CalculateLocalCentroid()
void AssignEdgeOwnership()
void ResetEdgeVisited()
void CalculatePolygonSplit(const math::mat4 &transform, math::vec3 planePosition, math::vec3 planeNormal, bool keepBelow)
void IdentifyBoundaries(const math::mat4 &transform)
SplitState GetPolygonSplitState() const
void DEBUG_drawEdgeBoundaryInset(const math::mat4 &transform)

Public Members

math::vec3 localCentroid = {0, 0, 0}
math::color debugColor
bool isVisited = false
math::vec3 localNormal