Skip to content

Commit c2b18ab

Browse files
committed
CPatch: change default preallocated size to 12 instead of 6
This has the effect of setting the base `max_size` of a ContactPatchRequest to 12 instead of 6. This is to make sure the box-box case is fully captured.
1 parent f6d80a8 commit c2b18ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/hpp/fcl/collision_data.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ struct HPP_FCL_DLLAPI ContactPatch {
545545

546546
/// @brief Default maximum size of the polygon representing the set.
547547
/// Used to pre-allocate memory for the patch.
548-
static constexpr size_t default_preallocated_size = 6;
548+
static constexpr size_t default_preallocated_size = 12;
549549

550550
protected:
551551
/// @brief Container for the vertices of the set.

0 commit comments

Comments
 (0)