Skip to content

ludus::foundation::geometry::ConvexPolygonPartition

Ludus Wiki · API overview · Browse API

Struct

Convex polygons covering every nondegenerate triangle of a mesh exactly once.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/convex_polygon.hpp

#include <ludus/foundation/geometry/convex_polygon.hpp>
struct ludus::foundation::geometry::ConvexPolygonPartition final

Fields

Polygons

Array<ConvexPolygon> ludus::foundation::geometry::ConvexPolygonPartition::Polygons
Ordered by their smallest source triangle index.

Related types: Array · ConvexPolygon

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/convex_polygon.hpp

Triangles

Array<uint32> ludus::foundation::geometry::ConvexPolygonPartition::Triangles
Source triangle indices grouped by polygon, ascending within each group.

Related types: Array · uint32

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/convex_polygon.hpp

DegenerateTriangleCount

usize ludus::foundation::geometry::ConvexPolygonPartition::DegenerateTriangleCount = 0
Triangles with coincident or collinear corners. They enclose no measurable area, belong to no polygon and are listed nowhere.

Related types: usize

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/convex_polygon.hpp

UnmergeableEdgeCount

usize ludus::foundation::geometry::ConvexPolygonPartition::UnmergeableEdgeCount = 0
Edges shared by more than two triangles or by two triangles of opposite winding; polygons never span them.

Related types: usize

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/convex_polygon.hpp