Jump to content
PifLyon

How to Fill a hole in a shape in Affinity Designer

Recommended Posts

Hi,

 

I have a shape that is closed and contains a hole. On the picture joined :

- This shape is a result of a boolean combination of 2 identical shapes slightly shifted.

- The stroke is red

- The fill is black.

 

I want to fill the hole in the center of this shape.

1 - I tried all the boolean operations (including divide) with no success, it doesn't "restore" the 2 original shapes as some vertices have been merged.

2 - I tried removing vertices to restore a "filled" shape,  but it is too hard as some vertices are overlapping other ones (is there a way to "hide" vertices like in Blender ?)

3 - I could redraw a shape on top of the original, but It's too hard because of the complexity of the bezier curves.

4 - I tried to make a square nested in this shape's layer, but it make the square appears only in the "fill" part of this shape (the black part).

 

How can I fill the center of this shape ? 

 

Thank you, Cédric.

2018-03-19 08_57_24-Affinity Designer.png

Edited by PifLyon
Added part 4.

Share this post


Link to post
Share on other sites

copy the layer and use the bolean divide, al little clean up afterwards, and you have a fill


intel core i5,  16GB 128Gb ssd win10 Pro Huion new 1060plus.

philips 272p 2560x1440px on intel HD2500 onboard graphics

Razer Tartarus Chroma

Share this post


Link to post
Share on other sites

Sorry dutchshader, but as I said part 1) Divide makes a mess.

Your advice seems not to take care of what I said in part 2).

Thank you for your help. 

Share this post


Link to post
Share on other sites

Sorry, missed that part.

Could you post the designer file?


intel core i5,  16GB 128Gb ssd win10 Pro Huion new 1060plus.

philips 272p 2560x1440px on intel HD2500 onboard graphics

Razer Tartarus Chroma

Share this post


Link to post
Share on other sites

If you don't mind the pixies adding a pixel layer you can always utilise the Flood Fill Tool

 

oreiller-shape.afdesign


Due to the fact that Boris Johnson is now our Prime Minister, punctuation, spelling and grammar will never be worried about ever again.  We now have far bigger problems to be worried about.

Share this post


Link to post
Share on other sites

NICE !! That works fine. I hope I will remember this method that is really quick.

 

Thank you dutchshader.

 

Note : I did not find "Expand Stroke" because of a the french translation "Vectoriser le contour" (which could be translated to "vectorize outline").

5aaf8246a734e_menuCalque-AffinityDesigner.thumb.png.26068c2e830aa94e992a8f5b71e74172.png

 

Share this post


Link to post
Share on other sites
1 hour ago, dutchshader said:

the only way i could find was:

copy the shape, ungroup, layer>expand stroke, divide. clean up.

Wow!!! Adding the expand stroke step to make cleanup easier is a brilliant solution I never would have thought of on my own.

 

As I am sure you all know, what makes creating a separate fill layer for a "Curves" shape like this one so tedious is that its two paths cross each other at two points along its top, so there the 'outer' path becomes the 'inner' one & visa versa. Similar path crossings occur frequently in vector documents I work with, particularly in ones I import into Affinity Designer from other sources, so what I have been doing to edit them so they have only non-crossing outer & inner paths is to first divide them, then tediously find where they cross & break each of them at the appropriate nodes to separate the paths into individual outer & inner segments. Next, even more tediously I join all the outer or inner path segments to make a single outer or inner path. I either do the same for all the other segments if I want to preserve the other path or delete them if I don't.

 

Needless to say, for complex shapes with lots of crossed paths this can be a very time consuming, confusing process so prone to errors that I often just give up. I am not sure how well adding the expand stroke step will work for all of these files, but even if it just works for some multi-path shapes in some of them, it will save me tons of time (& frustration!) so thank you one hundred times over for posting this! :)


Affinity Photo 1.8.4, Affinity Designer 1.8.4, Affinity Publisher 1.8.4;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 40GB RAM; macOS 10.15.6
Affinity Photo 
1.8.4.186 & Affinity Designer 1.8.4.4 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 14.0.1

Share this post


Link to post
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

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.