|
@@ -29,16 +29,22 @@ namespace igl
|
|
|
bool stitch_all;
|
|
bool stitch_all;
|
|
|
/// whether to use slow and more precise rounding (see assign_scalar)
|
|
/// whether to use slow and more precise rounding (see assign_scalar)
|
|
|
bool slow_and_more_precise_rounding;
|
|
bool slow_and_more_precise_rounding;
|
|
|
|
|
+ /// cutoff parameter for box_self_intersection_d (based on some casual
|
|
|
|
|
+ /// testing 1000 works better than 1,10,100,10000 etc. and better than
|
|
|
|
|
+ /// the recommended √n)
|
|
|
|
|
+ int cutoff;
|
|
|
inline RemeshSelfIntersectionsParam(
|
|
inline RemeshSelfIntersectionsParam(
|
|
|
bool _detect_only=false,
|
|
bool _detect_only=false,
|
|
|
bool _first_only=false,
|
|
bool _first_only=false,
|
|
|
bool _stitch_all=false,
|
|
bool _stitch_all=false,
|
|
|
- bool _slow_and_more_precise_rounding=false
|
|
|
|
|
|
|
+ bool _slow_and_more_precise_rounding=false,
|
|
|
|
|
+ int _cutoff=1000
|
|
|
):
|
|
):
|
|
|
detect_only(_detect_only),
|
|
detect_only(_detect_only),
|
|
|
first_only(_first_only),
|
|
first_only(_first_only),
|
|
|
stitch_all(_stitch_all),
|
|
stitch_all(_stitch_all),
|
|
|
- slow_and_more_precise_rounding(_slow_and_more_precise_rounding)
|
|
|
|
|
|
|
+ slow_and_more_precise_rounding(_slow_and_more_precise_rounding),
|
|
|
|
|
+ cutoff(_cutoff)
|
|
|
{};
|
|
{};
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|