Menu

ClipperLib2 : Orientation method not provided?

2022-02-25
2022-02-25
  • Phil Stopford

    Phil Stopford - 2022-02-25

    In ClipperLib, I used to use Orientation to determine winding order of output as part of a keyholing system to connect holes to outer perimeters. This method seems to not be available in ClipperLib2 and I wondered if this was planned.

     
  • Angus Johnson

    Angus Johnson - 2022-02-25

    I'll put this on my growing **todo ** list 😱.

     
  • Phil Stopford

    Phil Stopford - 2022-02-25

    As an additional note here, I would like to be able to force orientation, not just query it. I have a few cases where I'm not actually sure what my orientation is for the clipping geometry and used an explicit Positive for subject and Negative for clip in ClipperLib1. With the single fill rule now, I would like to be able to ensure the correct behavior

     
  • Angus Johnson

    Angus Johnson - 2022-02-25

    There is a ReversePaths function but I suspect it hasn't been exposed as public.

     
  • Phil Stopford

    Phil Stopford - 2022-02-25

    Yes. I guess a combination of query and reverse would allow me to make a consistent sequence for a mix of differing Path orientations within Paths, with a convenient method to encapsulate this into a convenience call.

     
MongoDB Logo MongoDB