Class ContactPatchSimplifierGreedy

Nested Relationships

Nested Types

Class Documentation

class ContactPatchSimplifierGreedy

Greedy contact patch simplifier based on the Visvalingam–Whyatt rule.

Public Types

using Index = std::size_t

Public Functions

ContactPatchSimplifierGreedy() = default
void compute(const ContactPatch &patch_in, std::size_t target_vertices, ContactPatch &patch_out)

Compute a simplified approximation of patch_in and write it into patch_out while preserving the supporting frame metadata.

void simplify(ContactPatch &patch, std::size_t target_vertices)

In-place simplification helper that replaces the polygon with a greedy approximation.