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

How can I fill this shape and remove the overlapping lines


Recommended Posts

In Affinity Designer shapes do not have to be closed paths but they must enclose an area before they can be given a fill color. That means you can't fill a straight line, but even a two node open path can be filled as long as at least one of its nodes causes the line to curve.

 

There are several ways to combine several lines into a single (usually closed) shape & remove any overlaps. One of them is to use the Boolean Geometry Divide operation on them & delete the extra shapes the division creates. The diagram below & the attached Combining lines.afdesign may make this clearer.

combining.png.2a28f7718b1d4fe105403d7011e5fc03.png

Others will probably suggest better alternatives.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Another approach.

 

Making the lines a shape is easy. Filling and trimming becomes problematical. If the curve layers are rasterized, a few seconds painting out the overlapping lines, and a few more using the flood tool works, except for the bottom, which would have no boundary.

 

You could also expand all the strokes, add them, and delete (a lot) of un-needed nodes. Then divide the shape into many curves, and fill and stroke those. More fuss than is desirable.

 

The remaining method I can think of requires adding about 20 nodes to mark the new ends of the curves, and joining those into shapes that can then be filled. The attached image shows in yellow the points where nodes need to be placed on the cross line. In red and magenta,  some of the positions where the outer shape lines need to have nodes added, old nodes deleted, and then joined to the next section.

 

Also attached is a very quick .gif sketching the process of adding nodes, deleteing, and then joining to the next curve, etc. etc.

 

Peep.thumb.jpg.d83249334f3d18dd08f2855cd7ba57a3.jpg

 

Trim.gif.2feecc984a2e6ab220441416da62c644.gif

 

 

iMac 27" Retina, c. 2015: OS X 10.11.5: 3.3 GHz I c-5: 32 Gb,  AMD Radeon R9 M290 2048 Mb

iPad 12.9" Retina, iOS 10, 512 Gb, Apple pencil

Huion WH1409 tablet

Link to comment
Share on other sites

You might find variation 2.afdesign of interest. It is sort of a variation on the last method @gdenby mentioned, one that uses a few features of vector shapes to reduce the number of nodes that need to be added or deleted. It does not look quite like his version but it hopefully will give you some ideas about the different ways you can combine shapes to get different results.

 

The shape I named "body" was created by joining the top & one of your outer shapes & then joining that with the other outer shape. Nested inside it is the line I named "beltline." Because that line is nested, there is no need to add or delete any of its nodes. Its stroke color & width can easily be set to whatever you want without that affecting anything else.

 

The two 'wing' shapes were created with the Pen tool, & stacked over the body shape in the Layers panel, which hides the sharp nodes of the body shape below them. That creates an overlap of the wing stroke into the body, which you may or may not like. I did not do anything to the two eye shapes besides fill the larger ones & make sure the two shorter ones were above them in the Layer stack. You may not like the effect this produces but there is a way to get something that looks like a non-overlapping shape that does not involve deleting any nodes, which I used for the Mouth shape.

 

For that, I duplicated the top mouth line & moved the dup up on the canvas until it was above the ends of the lower mouth line. I then joined & closed the two top mouth lines, placed that above the lower mouth line in the Layers panel, & then subtracted it from the lower mouth line. (To make this more obvious I actually created a compound object by holding down the alt/option key during the subtraction, but you don't need to do that.) The resulting "Mouth" shape can be filled with any desired color without affecting anything else.

 

The end result is this:

result.png.f68741bbc53caf469b58af159a719e26.png

Please understand that I am not suggesting this is the best or even a very good way to get what you want. It is only intended to show some of the possibilities the app offers.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

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.