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

Problems subtracting one curve from another


Recommended Posts

Hi all,

I am a very new user to Affinity Desktop so I have been trying to watch tutorials and troll the forums to help me get up to speed with some common tasks. As a bit of a learning process, I wanted to do some simple steps which consisted of subtracting one shape (curve) from another (curve). I found that in doing so, the cut out only appears to work if a segment is touching the outline of the base shape. If I repeat the process with an ellipse or a rectangle the subtraction works as expected...whether or not the subtracted shape is touching the outline of the base shape or is fully contained within it.

I have included some screenshots to help illustrate the issue I am seeing. 

Info for each picture

  1. shape removal 0 - This shows one curve (the star) that I want to remove on top of the base curve
  2. shape removal 1 - When using the Subtract option, the removal does not appear to work like I would expect.
  3. shape removal 2 - If I move the star curve shape to touch the outline of the base curve and repeat the subtraction, the part that was touching the outline is, in fact, subtracted. The other segments are not.
  4. shape removal 3 - This image just shows all the different shape types that I was testing out 

I've also attached my afdesign file in case that helps with any necessary troubleshooting.

Any info, guidance, feedback, etc. is much appreciated.

Thanks.

shape removal 0.jpg

shape removal 1.jpg

shape removal 2.jpg

shape removal 3.jpg

shape removal test.afdesign

Link to comment
Share on other sites

This file locks my Affinity Designer up and I have to force close it.

Try this file: test file.afdesign

 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

7 hours ago, HumblePie said:

Hi all,

I am a very new user to Affinity Desktop so I have been trying to watch tutorials and troll the forums to help me get up to speed with some common tasks. As a bit of a learning process, I wanted to do some simple steps which consisted of subtracting one shape (curve) from another (curve). I found that in doing so, the cut out only appears to work if a segment is touching the outline of the base shape. If I repeat the process with an ellipse or a rectangle the subtraction works as expected...whether or not the subtracted shape is touching the outline of the base shape or is fully contained within it.

I have included some screenshots to help illustrate the issue I am seeing. 

Info for each picture

  1. shape removal 0 - This shows one curve (the star) that I want to remove on top of the base curve
  2. shape removal 1 - When using the Subtract option, the removal does not appear to work like I would expect.
  3. shape removal 2 - If I move the star curve shape to touch the outline of the base curve and repeat the subtraction, the part that was touching the outline is, in fact, subtracted. The other segments are not.
  4. shape removal 3 - This image just shows all the different shape types that I was testing out 

I've also attached my afdesign file in case that helps with any necessary troubleshooting.

Any info, guidance, feedback, etc. is much appreciated.

Thanks.

shape removal 0.jpg

shape removal 1.jpg

shape removal 2.jpg

shape removal 3.jpg

shape removal test.afdesign 35.5 kB · 4 downloads

The issue is that your lowest shape (the blue  thing)  in the Boolean operation has winding fill mode and so the result has winding fill mode. With winding fill mode, the relative directions (clockwise or anticlockwise) of paths determine how a shape is filled. The other fill mode, alternate, is not dependent on path direction and it is the default fill mode in Affinity apps, so perhaps you imported your shapes from some file created by another app if you didn't deliberately change their mode to winding in Affinity

After performing the subtract, ensure the result is selected then do Layer > Fill Mode > Alternate.

Alternatively, set the lowest object to alternate before doing the subtract so the result will have alternate fill mode.

Link to comment
Share on other sites

Alternatively, run Geometry - Smooth Curves click the Node tool and then click Smooth Curve in the context menu bar on both the 'flower' and the 'cloud', then the subtraction operation will work correctly. Presumably this also rectifies the fill issues identified by @anon2

EDIT: Please disregard my answer - posted in error. H

 

Affinity Photo 2.0.3,  Affinity Designer 2.0.3, Affinity Publisher 2.0.3, Mac OSX 13, 2018 MacBook Pro 15" Intel.

Link to comment
Share on other sites

7 hours ago, anon2 said:

The issue is that your lowest shape (the blue  thing)  in the Boolean operation has winding fill mode and so the result has winding fill mode. With winding fill mode, the relative directions (clockwise or anticlockwise) of paths determine how a shape is filled. The other fill mode, alternate, is not dependent on path direction and it is the default fill mode in Affinity apps, so perhaps you imported your shapes from some file created by another app if you didn't deliberately change their mode to winding in Affinity

After performing the subtract, ensure the result is selected then do Layer > Fill Mode > Alternate.

Alternatively, set the lowest object to alternate before doing the subtract so the result will have alternate fill mode.

Wow. This would have taken me a very long time to figure this out. Thank you for the information. This resolved the issue I was seeing. 

And, to add to the information, you were 100% correct. To make this task faster, I brought in the curve shapes from another file and just pasted them in. I was not aware of the fill type so this is something I'll have to do a bit of reading on. Thanks again for the information. Very much appreciated.

Link to comment
Share on other sites

7 hours ago, h_d said:

Alternatively, run Geometry - Smooth Curves click the Node tool and then click Smooth Curve in the context menu bar on both the 'flower' and the 'cloud', then the subtraction operation will work correctly. Presumably this also rectifies the fill issues identified by @anon2

 

@h_d, I'll need to keep playing with this option. I did a few really quick attempts this morning but it did not seem to resolve the issue. Unfortunately, I didn't have much time so will give this another go later this evening. Thanks for the information. I appreciate the assistance.

Link to comment
Share on other sites

51 minutes ago, HumblePie said:

@h_d, I'll need to keep playing with this option. I did a few really quick attempts this morning but it did not seem to resolve the issue. Unfortunately, I didn't have much time so will give this another go later this evening. Thanks for the information. I appreciate the assistance.

Smooth won't help, and it will distort your shapes.

Link to comment
Share on other sites

I think I must have still been asleep this morning when I posted my original answer. TBH I'm not quite sure now the precise steps I went through, so sorry @HumblePie but I may have led you on a wild goose chase. I'll leave my posts in place but edit them to reflect this.

Affinity Photo 2.0.3,  Affinity Designer 2.0.3, Affinity Publisher 2.0.3, Mac OSX 13, 2018 MacBook Pro 15" Intel.

Link to comment
Share on other sites

20 hours ago, h_d said:

I think I must have still been asleep this morning when I posted my original answer. TBH I'm not quite sure now the precise steps I went through, so sorry @HumblePie but I may have led you on a wild goose chase. I'll leave my posts in place but edit them to reflect this.

Not a problem at all. :)  I appreciate the time and effort. Thanks!

Link to comment
Share on other sites

  • 8 months later...
On 11/5/2020 at 3:50 AM, ,,, said:

The issue is that your lowest shape (the blue  thing)  in the Boolean operation has winding fill mode and so the result has winding fill mode. With winding fill mode, the relative directions (clockwise or anticlockwise) of paths determine how a shape is filled. The other fill mode, alternate, is not dependent on path direction and it is the default fill mode in Affinity apps, so perhaps you imported your shapes from some file created by another app if you didn't deliberately change their mode to winding in Affinity

After performing the subtract, ensure the result is selected then do Layer > Fill Mode > Alternate.

Alternatively, set the lowest object to alternate before doing the subtract so the result will have alternate fill mode.

Why do I ALWAYS forget this!!! After years of working in Illustrator and now Designer....

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.