Jump to content
You must now use your email address to sign in [click for more info] ×

For some models, the 'add' boolean operation creates a hole?


increpare

Recommended Posts

Affinity Designer Version 1.7.3
OS: MacOS 10.15.1 (19B88)

Reprodcability: every time
Problem with new file also?: I've been able to reproduce it by pasting these shapes into a new file.

Select all, 

1463460600_Bildschirmfoto2019-12-21um05_47_35.png.e66321ac66b72123d564d93eeb0971df.png

press what I assume is the "add" button (I use affinity designer in German)

1777379722_Bildschirmfoto2019-12-21um05_38_59.png.bbc879cc6bbd5be00c809aa05469baa6.png

notice that  my shape now has a giant hole in it

1246525291_Bildschirmfoto2019-12-21um05_47_38.png.9893c0daf014dd0178b1ba43dc6ac8c8.png

 

If I move the right shape slightly before doing this this behaviour no longer happens.  It seems to be related to the fact that both shapes have some vertices at the same positions? 

This came up trying to tidy up very messy vector stuff imported from Goodnotes on iPad. 

( Just started trying out affinity designer today - other than this I've been having lots of fun :) )

test2.afdesign

Edited by increpare
Link to comment
Share on other sites

Select one of the paths with the Node Tool, click the Reverse Curves button in the Context Toolbar, then select both paths, then Add.

But yeah, it's definitely not very obvious what's going on here.

 

Edited by loukash
Not a solution to this problem

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

3 minutes ago, loukash said:

Select one of the paths with the Node Tool, click the Reverse Curves button in the Context Toolbar, then select both paths, then Add.

Hm… wait.
It worked after I have done "something" else to the paths, but it doesn't work on your fresh file.

Needs more investigation…

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

Do they need to be this exact shape and position?
If you move one path only 0.1 px, then they add up as expected.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

This intersection of paths is what's causing it:

1004776694_Screenshot2019-12-21at11_28_13.thumb.png.887ebc872715d5c05dc6bb6e5b3eb9bf.png

It's likely neither a bug nor a feature; it's math.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

Hi, thanks for the thoughts :)

>Do they need to be this exact shape and position?

No, but I was trying to import a bunch of data, and this happens a lot.  I just spent an hour or so manually going through all the changes and fixed things up manually.  Without a fix, I'll likely avoid this particular pipeline in future, though :P

When I zoom right in the geometry looks like bad auto-generated output but nothing too pathological.  There's also some freedom - I can move the point about a bit and the bug still happens.

765745780_Bildschirmfoto2019-12-21um14_42_30.thumb.png.db77d8098e608a8bfd63636d13f334c3.png

>It's likely neither a bug nor a feature; it's math.

I don't I understand what you mean here - that it could be a tricky algorithm/precision problem that might be hard to fix?
 

Link to comment
Share on other sites

22 minutes ago, increpare said:

I don't I understand what you mean here - that it could be a tricky algorithm/precision problem that might be hard to fix?

What I mean is that 1 + -2 = -1 :)
That might be the case here.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

Alright, there is some kind of a strange behavior in ADesigner.

This is what happens when "adding" a complex closed form with crossing path:

1605955384_Screenshot2019-12-21at17_15_41.thumb.png.1f39a48ce387d415ac1a312c836bf0ee.png

This is what Illustrator CS5 does with exactly the same two vector paths, using the "Vereinen" (= unite/merge/combine; no idea how it's called in the English version) Pathfinder function:

859348314_Screenshot2019-12-21at17_15_58.png.adf6e066dc5699d480341bfedb80f0ed.png

In theory both results should be the same, but only Illustrator does the logical thing and simply creates an outline of both forms.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

I seem to be having at least a very similar problem. I have had it occur both when trying to combine two shapes as well as trying to subtract one shape from another. In each case, all the nodes combine onto one layer, but instead of either creating one larger shape (in the “add” instance), one of the shapes is filled in, the other is empty, or (in the “subtract” instance), the smaller shape that should be the “hole” in the larger shape fills in and the larger shape is empty (again, all the nodes still there). I attempted to use the reverse function in the context tool bar, but got the same results.

One thing I did notice, though, after trying to add two shapes, based on some comments in this thread, I started inspecting to see if I had any overlapping nodes that would cause that “math” issue someone brought up. I found that every node on the filled in shape was doubled now. I could select each node one by one and move it around and there was still the original node in its original place. After moving the duplicate node around, the space between them would fill the way it should be. I could go around one by one deleting the duplicate nodes, but that’s not efficient. I’m not sure if this is a bug or if I’m screwing something up. Sometimes the functions work, sometimes this happens. The fact that every node on the infilled portion is doubled should be an indication of something, I just don’t know what. To me, a non-technically minded artist with a history of not getting along with the digital world (seriously, technology just seems to have something against me. My wife works in IT, and whenever I have a technical problem and get her into my studio to help me out, things just seem to work for her and she doesn’t see my problem), it would appear that somewhere in the process of trying to combine or subtract shapes, one of the shapes is being duplicated resulting in an empty fill.

No idea what to do about that.

Toby

Link to comment
Share on other sites

  • Staff

Sorry you are having problems. We have been working again on Boolean operations. These changes are in a (currently internal only) Affinity Designer 1.8.0 build. Please can you retry these problem cases once the next Designer beta is posted in the beta area of the forums (and report your findings there). 

Thanks.

Patrick Connor
Serif Europe Ltd

"There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self."  W. L. Sheldon

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.