Jan Kowalewski Posted June 9, 2022 Posted June 9, 2022 Hi, I am trying different boolean operations with lines (curves) and it always fails. Is there no way to e.g. use the "Add" operation to combine two lines or a line and another shape? The line(s) always just disappear when I try it. Is it supposed to be like this? Cheers Quote
GarryP Posted June 10, 2022 Posted June 10, 2022 (edited) Welcome to the forums @Jan Kowalewski Sometimes, the Boolean operations only work with closed shapes. See posts below for more information. They work by calculating the areas of shapes and then subtracting/adding/etc. those areas. Since open curves/lines often have no areas there’s nothing for them to work with, so the lines/curves sometimes disappear. If you want to combine open lines/curves you can use the “Layer → Geometry → Merge Curves” functionality instead. Edited June 11, 2022 by GarryP Added more details. Quote
NotMyFault Posted June 10, 2022 Posted June 10, 2022 In Case you are using Designer, you could use „expand stroke“ to convert open curves to closed curves. It depends on your intentions/ further edits which way to go. Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
R C-R Posted June 10, 2022 Posted June 10, 2022 9 hours ago, GarryP said: The Boolean operations only work with closed shapes. They work by calculating the areas of shapes and then subtracting/adding/etc. those areas. Since open curves/lines have no areas there’s nothing for them to work with, so the lines/curves disappear. That isn't quite right. The booleans work with open curves if they enclose some area. So for example, try it with this 2 open curves.afphoto example. Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
GarryP Posted June 11, 2022 Posted June 11, 2022 Interesting. I’ve never seen that before as I’ve never tried to do that as I assumed it wouldn’t work. I’ve put a little video together showing some examples of subtracting curves, some of which ‘work’, some of which don’t. Is there a ‘rule-of-thumb’ to tell us which curves can successfully have Boolean operations applied to them? Note: I've modified my earlier answer to reflect this new information. 2022-06-11 08-26-14.mp4 Quote
NotMyFault Posted June 11, 2022 Posted June 11, 2022 27 minutes ago, GarryP said: Is there a ‘rule-of-thumb’ to tell us which curves can successfully have Boolean operations applied to them? Just add a fill. Straight lines wont enclose an area. Curved or multi node lines who show an effect of fill will work. If the nodes of an curve cover a 2D area, it works. If the nodes are on one single line (1D), it wont. If all nodes are at one position (0D), it won't. Unless you use node tool to make a curve (not straight) by only two nodes. But this would be cheating 😂 R C-R and GarryP 1 1 Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
GarryP Posted June 11, 2022 Posted June 11, 2022 I’ve done a bit more experimenting and I think I can now understand that, for two-node curves: if all of the curves are straight lines (even if some cross each other) then the operation will have no effect; if at least one of the curves is not a straight line then the operation will do <something>, but all the straight lines will be ignored by the operation and then removed. However, for more-than-two-node curves it works differently. I think I need to experiment more with this (or just leave it alone until I really need to use it). NotMyFault 1 Quote
R C-R Posted June 11, 2022 Posted June 11, 2022 5 hours ago, GarryP said: However, for more-than-two-node curves it works differently. As @NotMyFault said, it just depends on if the curves cover a 2D area or not. For example in this 2 five node curves.afdesign all the nodes of each curve are in a straight line so they do not cover any area, & the booleans do not have any effect on them. GarryP 1 Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
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.