Filling with Open Paths

Inkscape related questions, tips and topics can be posted here
Post Reply
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Filling with Open Paths

Post by BrayD »

I'm making parts that contain both closed and open paths. When using the fill operation for a visual representation, it's connecting the endpoints of my open paths and leaving that space unfilled. I've found that if I path>break apart and only combine the closed paths with the perimeter, I can achieve the desired look. I'd prefer not to break my paths for the sake of cosmetics; some of these parts have many, many open and closed paths. Breaking/combining would be a chore. I'm hoping there's a solution that will allow me to keep it as one path and still show the fill how I'd like.

Example of a part that I'd prefer to keep as a single path.
1.JPG
1.JPG (13.52 KiB) Viewed 477 times
1.JPG
1.JPG (13.52 KiB) Viewed 477 times
This is what the fill looks like if I leave it as-is. Note the unfilled crescent shape local to the open paths.
2.JPG
2.JPG (14.67 KiB) Viewed 477 times
2.JPG
2.JPG (14.67 KiB) Viewed 477 times
Desired result, which I achieved by breaking apart, combining the two open paths with the perimeter, and filling. This part contains 3 separate paths.
3.JPG
3.JPG (10.23 KiB) Viewed 477 times
3.JPG
3.JPG (10.23 KiB) Viewed 477 times
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

stroke to path 1.jpg
stroke to path 2.jpg
stroke to path 3.jpg
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

Path>Difference was the winner. It was a good exercise to walk through that on my larger project. Very comfortable with that operation now. Thank you!
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

BrayD wrote: Fri Nov 08, 2024 11:06 pm Path>Difference was the winner. It was a good exercise to walk through that on my larger project. Very comfortable with that operation now. Thank you!
I assume you applied "Stroke to Path" first, then did the difference operation?
David
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

My issue came from all of the paths being combined when adding fill. I broke them all apart and differenced the closed paths manually. Applied stroke for visual purposes.
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

OK - So for the open paths (lines that are not closed paths) you used the "Path, Stroke to Path" tool to convert them to closed paths for better visibility when viewed on the monitor. But you will leave then as open paths for the actual plasma cutting. Just wanted to clarify this for future readers to learn from.

Thanks,
David
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

open path cuts.jpg
open path cuts 1.jpg
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

adbuch wrote: Sat Nov 09, 2024 5:46 pm OK - So for the open paths (lines that are not closed paths) you used the "Path, Stroke to Path" tool to convert them to closed paths for better visibility when viewed on the monitor. But you will leave then as open paths for the actual plasma cutting. Just wanted to clarify this for future readers to learn from.

Thanks,
David
Nope. I didn't want to make them closed paths. Stroke to path was not used.

My approach was to keep the open paths higher in the layer tree to keep them visible, then add stroke width to make them a bit more visible.

I started with this. All one path, added fill, and it resulted in the crescent shapes on the open paths.
1.png
Removed the fill and did path>break apart.
2.png
2.png (25.78 KiB) Viewed 410 times
2.png
2.png (25.78 KiB) Viewed 410 times
Grouped the open paths and moved them to the top of the tree.
3.png
Selected the perimeter path, moved to bottom of the tree, and added fill.
4.png
4.png (122.61 KiB) Viewed 410 times
4.png
4.png (122.61 KiB) Viewed 410 times
Selected the open paths and differenced them with the perimeter path.
5.png
That leaves the open paths visible as they're above the closed paths in the feature tree. To make them more visible on the monitor, I selected the group and added stroke width/color.
6.png
Reading my original post, I very closely replicated what I did to make it work the first time. I understand the 'difference' operation and the importance of object location in the layer tree far better now though.

I'm not sure what the open path width is on the part you referenced. I only have photos.
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

OK - you followed my second suggestion above. I understand now.
stroke to path 3.jpg
stroke to path 3.jpg (66.72 KiB) Viewed 398 times
stroke to path 3.jpg
stroke to path 3.jpg (66.72 KiB) Viewed 398 times
The original image was supplied to you, and not one you took yourself - now understood.

What is the overall size of the finished part?

Thanks,
David
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

Indeed! I'll admit communication is difficult when I don't know what I'm talking about, haha. Appreciate the patience.

Total width on the finished part is 54".
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

55.jpg
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

Yep, that's the dimension I was referring to.

My plasma kerf is essentially .060". Is there a rule of thumb for the minimum recommended width of a closed loop? Something like 2X kerf width?
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
adbuch
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 10135
Joined: Thu Sep 21, 2017 5:22 pm
Location: Tucson, Arizona
Contact:

Re: Filling with Open Paths

Post by adbuch »

BrayD wrote: Sun Nov 10, 2024 8:31 pm Yep, that's the dimension I was referring to.

My plasma kerf is essentially .060". Is there a rule of thumb for the minimum recommended width of a closed loop? Something like 2X kerf width?
stroke to path.jpg
BrayD
1 Star Elite Contributing Member
1 Star Elite Contributing Member
Posts: 76
Joined: Sat Sep 07, 2024 9:25 pm

Re: Filling with Open Paths

Post by BrayD »

Agreed. I could see arc wonder causing some cut quality issues if it's not wide enough.
TM2 Torchmate 5x10
Red Display AVHC
ZEKS Refrigerated Dryer
Motor Guard Filter
Miller Spectrum 2050
Post Reply

Return to “Inkscape”