kevinmcsherry Posted May 9, 2021 Share Posted May 9, 2021 Can anybody tell me how I can slice up an in AD? I've attached a screenshot of a rectangle which I've divided up with wavy lines. When I select a line plus the rectangle and use the 'Divide' or 'Xor' function, what I get is that light area at the top instead of a rectagle divided up into two separate but touching areas. I may be missing something obvious but I can't work it out. Can anybody help? Quote Using: Mac OSX Monterey on a Mac Mini (late 2014). Wacom Bamboo. Mouse. Pencils. Pens. Other stuff... Kevin McSherry: Creative. Art : Illustration : Design The Studio, 17 Aideen Avenue, Terenure, Dublin 6W. Ireland +353 (0)86 247 0737 www.mcsherry.ie Link to comment Share on other sites More sharing options...
PixelPest Posted May 9, 2021 Share Posted May 9, 2021 From my knowledge you'll need to merge all lines (can be very small) - expand stroke and the do a Boolean Subtract - then Layer-> Geometry->Divide for individual shapes with a tiny gap in-between. (Easier in Inkscape via Divide.) Quote Link to comment Share on other sites More sharing options...
v_kyr Posted May 9, 2021 Share Posted May 9, 2021 Also for a single of those lines, the way is as already mentioned by PixelPest, use expand stroke so the line converts to a closed path and then select the line and other object of interest (the rectangle) and perform the wanted geometrical operation. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
kevinmcsherry Posted May 10, 2021 Author Share Posted May 10, 2021 Thank you both, that was very helpful. I just want to add what I just experienced: Initially, I set the stroke of each of those lines to 0. When I expanded the stroke, I got the same unwanted result as before. So I set the stroke to the minimum of 0.1 and then expanded and it worked. Perhaps logically, you can't do this if there's no width to the stroke. Maybe it's another thing I'm doing wrong 😬 This will get me through the project for which I need this function but It would be better to have a 0 width cut. Is that possible? Thanks again. Kevin Quote Using: Mac OSX Monterey on a Mac Mini (late 2014). Wacom Bamboo. Mouse. Pencils. Pens. Other stuff... Kevin McSherry: Creative. Art : Illustration : Design The Studio, 17 Aideen Avenue, Terenure, Dublin 6W. Ireland +353 (0)86 247 0737 www.mcsherry.ie Link to comment Share on other sites More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 You can have much finer strokes/gaps by going Preferences->User Preferences->Decimal Places for Unit Type: Pixels=3 (I won't use the max. of 6 as it most likely give calculation errors down the road. Merge all lines - now enter stroke width: 0,001px, hit enter - it will show "0" but will compute internally with 0,001 go Layer->Expand Stroke and Boolean Subtract + Geometry Separate curves will work. rounding error at 72k zoom: Quote Link to comment Share on other sites More sharing options...
kevinmcsherry Posted May 10, 2021 Author Share Posted May 10, 2021 That's great -thank you PP, I'm very grateful to you. When you say "merge', do you mean the 'add' boolean function where the divide and xor functions are on the top right of the window (I learned from this thread that they're 'boolean functions!). Quote Using: Mac OSX Monterey on a Mac Mini (late 2014). Wacom Bamboo. Mouse. Pencils. Pens. Other stuff... Kevin McSherry: Creative. Art : Illustration : Design The Studio, 17 Aideen Avenue, Terenure, Dublin 6W. Ireland +353 (0)86 247 0737 www.mcsherry.ie Link to comment Share on other sites More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 3 minutes ago, kevinmcsherry said: When you say "merge', do you mean the 'add' boolean function No - that won' t work with open paths. I believe it's in Layers->Geometry->Merge Curves and have to take place before you add thickness to the strokes via Expand Stroke. Got it so far? (Just on an old iPad right now) Quote Link to comment Share on other sites More sharing options...
kevinmcsherry Posted May 10, 2021 Author Share Posted May 10, 2021 Yes -I see that now. Great. Thank you for your patience. 👍👍👍 Quote Using: Mac OSX Monterey on a Mac Mini (late 2014). Wacom Bamboo. Mouse. Pencils. Pens. Other stuff... Kevin McSherry: Creative. Art : Illustration : Design The Studio, 17 Aideen Avenue, Terenure, Dublin 6W. Ireland +353 (0)86 247 0737 www.mcsherry.ie Link to comment Share on other sites More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 Glad to help. 😋 Quote Link to comment Share on other sites More sharing options...
R C-R Posted May 10, 2021 Share Posted May 10, 2021 8 hours ago, PixelPest said: You can have much finer strokes/gaps by going Preferences->User Preferences->Decimal Places for Unit Type: Pixels=3 (I won't use the max. of 6 as it most likely give calculation errors down the road. The Decimal Places for Unit Type settings have no effect on calculations, which are always done at the maximum available internal precision (the binary equivalent of around 8 decimal places). Those settings only affect the display of numeric values. Quote 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 More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 Then try with 0,001 and 0,000001 and feel the difference. Quote Link to comment Share on other sites More sharing options...
loukash Posted May 10, 2021 Share Posted May 10, 2021 On 5/9/2021 at 3:42 PM, kevinmcsherry said: how I can slice up an in AD? I've attached a screenshot of a rectangle which I've divided up with wavy lines. See Quote 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 More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 8 minutes ago, loukash said: See Why? there's no bug in the method I recommended. In Inkscape it's called Division and works with strokes. Quote Link to comment Share on other sites More sharing options...
loukash Posted May 10, 2021 Share Posted May 10, 2021 @PixelPest, I wasn't replying to you. The issue that @kevinmcsherry describes is exactly the same as what my thread was about, and it's an acknowledged bug. But your "expand stroke" workaround is valid, see Quote 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 More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 I still think cutting via single/multiple strokes (no shapes) is a feature that's somehow missing. Quote Link to comment Share on other sites More sharing options...
loukash Posted May 10, 2021 Share Posted May 10, 2021 1 minute ago, PixelPest said: I still think cutting via single/multiple strokes (no shapes) is a feature that's somehow missing. Of course! Did someone say anything contrary?! Quote 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 More sharing options...
R C-R Posted May 10, 2021 Share Posted May 10, 2021 Just now, PixelPest said: Then try with 0,001 and 0,000001 and feel the difference. I am not sure what you mean by "feel the difference." But for example, in this narrow line.afdesign file try expanding the 0.000005 px line & subtracting that from the rectangle vs. doing the same thing with a line ten or a hundred times as wide. The difference is tiny but real. Quote 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 More sharing options...
loukash Posted May 10, 2021 Share Posted May 10, 2021 12 minutes ago, R C-R said: "feel the difference." My experience from the aforelinked thread was that the finer the expanded stroke, the higher the chance that it will introduce zillions of redundant nodes upon dividing the underlying object. But that likely depends on other factors as well. For my object (which was a real object for a graphic I was working on at that time), the sweet spot was 0.001 pt. Quote 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 More sharing options...
PixelPest Posted May 10, 2021 Share Posted May 10, 2021 32 minutes ago, loukash said: … the higher the chance that it will introduce zillions of redundant nodes upon dividing the underlying object. the sweet spot was 0.001 pt. Exactly. Quote Link to comment Share on other sites More sharing options...
R C-R Posted May 10, 2021 Share Posted May 10, 2021 1 hour ago, loukash said: My experience from the aforelinked thread was that the finer the expanded stroke, the higher the chance that it will introduce zillions of redundant nodes upon dividing the underlying object. But that likely depends on other factors as well. For my object (which was a real object for a graphic I was working on at that time), the sweet spot was 0.001 pt. My experience is different but be that as it may, my point is the Decimal Places for Unit Type settings do not affect the calculations, just what the app displays in numeric fields. It is easy enough to show this: for example set it to 0 for pixels, enter 0.4 px for the X value of left edge of a rectangle in the Transform panel & zoom in until you can see where that edge actually is. Or set the dp for degrees to 0, enter 0.5 in the Rotation field of a rectangle & try to set a ruler guide to be flush with any of its edges. Quote 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 More sharing options...
Recommended Posts
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.