PEZ / SketchSeparateShapes

A Sketch-app plugin that does a ”boolean” separate operation on two selected shapes. Like divide in Pathfinder in Adobe Illustrator.
164 stars 10 forks source link

Mystic. Sometime forms are not separated correctly #4

Open Mikola35 opened 6 years ago

Mikola35 commented 6 years ago

Correct: 1 correct

Incorrect: 2 incorrect

Full video with other examples: https://www.dropbox.com/s/8i0vf7vjiz20yh1/mystic.mp4?dl=0

PEZ commented 6 years ago

Oh, no's! I think it could have something to do with the winding rules. Which would be a bit hard to fix, since I don't know how to ”see” from the plugin. I'll have a look.

PEZ commented 6 years ago

I can't really figure this out yet. The only thing I can find is a workaround:

  1. Duplicate the line.
  2. Intersect the line and its copy.
  3. Separate the intersection and the oval.
bomberstudios commented 6 years ago

Not sure if this is what you're looking for, but layer.windingRule() will return either 0 for NSNonZeroWindingRule or 1 for NSEvenOddWindingRule

PEZ commented 6 years ago

Here is a slightly better workaround: If the split fails, undo and redo it with the start and end points of the line reversed.

a2sc commented 4 years ago

Hi guys. My opinion is that there is no need to fix the "Separate SHAPES" plugin. Actually, it is not a bug! A line is not really a shape! In Adobe Illustrator, you could not achieve this (I tested it in the last version), and it is normal.

If you really want to achieve this, you can use a 1px height rectangle instead of the line… and it works!

@PEZ Congratulations for this great plugin.