Paper.js: Boolean path.subtract with { insert: false, trace: false } doesn't work well on rectangle with and without radius

Created on 16 Dec 2019  路  1Comment  路  Source: paperjs/paper.js

Description/Steps to reproduce

Create a Rectangle Path with radius, apply a subtract(anyShape, { insert: false, trace: false }) to the bottom left edge.
It doesn't work with normal rectangle too. It appens with when you subtract a shape to the bottom left corner.
The path doesn't subtract well. It cut the path in intersections but doesn't remove it.
Description

Link to reproduction test-case

Reproduction sketch

Expected result

It should remove the path under the subtrahend shape:
ExpectedResult

Additional information

PaperJS V 0.12.3

boolean-operations bug

Most helpful comment

Hey, we found a weird thing that fixes the bug. If you split the base shape, this doesn't happen:

path.splitAt(0);

Then the path is opened. This should be related to this.

Here is the sketch from the original issue with the quick fix

image

>All comments

Hey, we found a weird thing that fixes the bug. If you split the base shape, this doesn't happen:

path.splitAt(0);

Then the path is opened. This should be related to this.

Here is the sketch from the original issue with the quick fix

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tjunnone picture tjunnone  路  4Comments

khurramraheel picture khurramraheel  路  7Comments

nicholaswmin picture nicholaswmin  路  3Comments

arel picture arel  路  3Comments

sansumbrella picture sansumbrella  路  3Comments