Class ContactPatchSimplifierGreedy
Defined in File contact_patch_simplifier.h
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_inand write it intopatch_outwhile 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.
-
using Index = std::size_t