Allowing Negative Volume Bodies

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Gregory son of Carl
Posts: 99
Joined: Mon Apr 06, 2020 7:42 pm
Location: California

Allowing Negative Volume Bodies

Post by Gregory son of Carl »

What do you think about allowing Part Design Bodies to have negative volumes?

The basic concept is that you can start a body with a subtractive feature (Pocket, Hole, Groove, etc.). A negative volume body would look and behave similarly to a normal 3D shape, however when you fuse it into another body, that volume is removed instead.

Negative volume bodies would give users some more flexibility in how features can be organized on the tree. Subtractive features could be compartmentalized in the same ways that additive features can.

For reference, negative volumes exist in CATIA. Interestingly, the official documentation uses them in the chapter about optimizing model performance. Here's a link if you are curious. Just scroll down the table of contents and select 'Optimizing Part Design Application' to open the chapter I'm talking about. They recommend putting features into separate bodies and then combining them into the final part. The reason that is faster is because the CATIA solver can tell which bodies are unchanged and skip them when updating.

CATIA Traditional Method
Image
CATIA Recommended Method (Negative volume body: Body.2)
Image

Would negative volume bodies be a good fit for FreeCAD? I'm curious to hear other opinions on the matter.
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: Allowing Negative Volume Bodies

Post by adrianinsaval »

What's the advantage over modeling both as additives and then using a regular boolean cut? I like the concept too but it seems unnecessary
User avatar
Gregory son of Carl
Posts: 99
Joined: Mon Apr 06, 2020 7:42 pm
Location: California

Re: Allowing Negative Volume Bodies

Post by Gregory son of Carl »

I'd say there is a marginal improvement to model clarity/readability. If you delete the cut boolean and keep the tool body, there is no evidence left about whether that body was intended as a cut tool or a fuse tool. With a negative body, that information is explicit even without the boolean feature.
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Allowing Negative Volume Bodies

Post by chrisb »

Gregory son of Carl wrote: Fri Jun 12, 2020 3:53 am With a negative body, that information is explicit even without the boolean feature.
Not really, if you cut a negative body it would be like fusing the positive.

Besides, due to an error you can already start with a subtractive primitive, loft or sweep, but it still acts like an additive.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Allowing Negative Volume Bodies

Post by chrisb »

chrisb wrote: Fri Jun 12, 2020 7:05 am
Gregory son of Carl wrote: Fri Jun 12, 2020 3:53 am With a negative body, that information is explicit even without the boolean feature.
Not really, if you cut a negative body it would be like fusing the positive.

Nevertheless, from a theoretic point of view this is rather intriguing. You could even go further and start a body with a hole and then add something around it.

Besides, due to an error you can already start with a subtractive primitive, loft or sweep, but it still acts like an additive.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Gregory son of Carl
Posts: 99
Joined: Mon Apr 06, 2020 7:42 pm
Location: California

Re: Allowing Negative Volume Bodies

Post by Gregory son of Carl »

chrisb wrote: Fri Jun 12, 2020 7:05 am Not really, if you cut a negative body it would be like fusing the positive.
True. I think a negative volume body still feels more intentional, although it will come down to whether or not the designer is applying good modeling practices. Using double negative booleans would not be recommended because its confusing to read.
chrisb wrote: Fri Jun 12, 2020 7:05 am due to an error you can already start with a subtractive primitive
Just call it a feature :D
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: Allowing Negative Volume Bodies

Post by chrisb »

Gregory son of Carl wrote: Fri Jun 12, 2020 8:55 pm Just call it a feature :D
No, sorry, it then behaves like an additive feature.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: Allowing Negative Volume Bodies

Post by ulrich1a »

Gregory son of Carl wrote: Fri Jun 12, 2020 12:11 am Would negative volume bodies be a good fit for FreeCAD?
This is already available in FreeCAD in the Part-Workbench. You can select a shape and revert it. It is available in the menu under Part/Reverse shapes.
A reverted shape has than a negative volume and behave different in boolean operations. You can distinguish such parts, if you switch the lightning from two sides to one side. Reverted shapes are than black.

Ulrich
User avatar
Gregory son of Carl
Posts: 99
Joined: Mon Apr 06, 2020 7:42 pm
Location: California

Re: Allowing Negative Volume Bodies

Post by Gregory son of Carl »

ulrich1a wrote: Sat Jun 13, 2020 11:25 am This is already available in FreeCAD in the Part-Workbench
Radical! It's incredible how fully featured the Part workbench already is. I hope it become more compatible the Part Design workbench one day. I prefer to use the Part Design boolean tool because it is clear which one is the target body and which one is the tool body.
Post Reply