9 int main(
int ,
char ** )
17 {391, 374}, {240, 431}, {252, 340}, {374, 320}, {289, 214}, {134, 390}, {68, 186},
18 {154, 259}, {161, 107}, {435, 108}, {208, 148}, {295, 160}, {421, 212}, {441, 303},
21 auto geometry = std::make_shared<Geometry>(
Geometry::SIMPLE, points, Eigen::Vector3d{0, 0, 0});
27 for (
const auto &convex : partitions)
35 for (
const auto &tri : triangles)
std::vector< GeometryPtr > shatter(const GeometryPtr &geometry)
"Shatters" a convex polygon into a fan of triangles using the first point as the root for all triangl...
A simple polygon (no holes).
std::vector< GeometryPtr > convexifyOptimal(const GeometryPtr &geometry)
Performs an optimal convex decomposition on the geometry.