Class ContactPatchSimplifierMaxArea
Defined in File contact_patch_simplifier.h
Class Documentation
-
class ContactPatchSimplifierMaxArea
Dynamic-programming simplifier that preserves the largest possible polygon area with
target_verticespoints.Public Functions
-
ContactPatchSimplifierMaxArea() = default
-
void compute(const ContactPatch &patch_in, std::size_t target_vertices, ContactPatch &patch_out)
Compute the maximum-area subset of
patch_inwithtarget_verticespoints and store it inpatch_out.
-
void simplify(ContactPatch &patch, std::size_t target_vertices)
In-place simplification helper that replaces the polygon with the max-area subset.
-
ContactPatchSimplifierMaxArea() = default