Menu

Untouched profiles

Giuse
2022-06-07
2022-06-24
  • Giuse

    Giuse - 2022-06-07

    Hello,

    let's suppose I merge a list of profiles at once (it does not matter the number). I use the union operation, so the distinction between subject and object is not important, I insert all my profiles in the subject. Everything works great, but my question is: is it possible to locate in the output the profiles that have remained isolated after the merging (i.e. have not merged with any profile in the input list)?

    Thank you for your time and have a good day you all!

     
    👍
    1
  • Gorbin

    Gorbin - 2022-06-24

    Yeah - having a more informative solution output than just the point lists would be a very useful feature!

    There are so many use-cases where it is necessary to know which shapes were involved in a clipping result.
    For example - calculating the length of an intersection line, highlighting or coloring them, skipping a triangulation process because the shape in question wasn’t even cut – just to name a few!

    In the ClipperLib2 the PolyTree with PolyNodes has been replaced by PolyPath – could that be a good entry point for this feature? Maybe instead of the Polygon as a PointList an EdgeList build from the OutPt. Each Edge holds one point and the next Edge and a list of PolyPaths participating in its creation. And it can be used to do multiple clippings - like give me the intersection and substraction output without having to build up the edge tables again...

    I don’t want to discuss this in detail here – just in general – what do you think?

    Thanks for your awesome work - I really appreciate it!

     
MongoDB Logo MongoDB