Fix of previous commit: Mixed up ClipperLib::pftPositive and pftNonZero

This commit is contained in:
Vojtech Bubnik 2021-06-01 12:33:14 +02:00
parent 73e0099c55
commit 9aa520baf3
5 changed files with 6 additions and 6 deletions

View file

@ -12,13 +12,13 @@ struct MeshSlicingParams
{
enum class SlicingMode : uint32_t {
// Regular slicing, maintain all contours and their orientation.
// slice_mesh_ex() applies ClipperLib::pftPositive rule to the result of slice_mesh().
// slice_mesh_ex() applies ClipperLib::pftNonZero rule to the result of slice_mesh().
Regular,
// For slicing 3DLabPrints plane models (aka to be compatible with S3D default strategy).
// slice_mesh_ex() applies ClipperLib::pftEvenOdd rule. slice_mesh() slices EvenOdd as Regular.
EvenOdd,
// Maintain all contours, orient all contours CCW.
// slice_mesh_ex() applies ClipperLib::pftPositive rule, thus holes will be closed.
// slice_mesh_ex() applies ClipperLib::pftNonZero rule, thus holes will be closed.
Positive,
// Orient all contours CCW and keep only the contour with the largest area.
// This mode is useful for slicing complex objects in vase mode.