What Compound parts are made for?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
plgarcia
Posts: 310
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

What Compound parts are made for?

Post by plgarcia »

Hello
Can somebody tell me or point me the documentation page if available that explain what compounds are used for, what functional difference with cuts and what gain is expected.
The problem is that compounds do not work completely.
Here are some cases they do not work:
- Fusion of two compound (In my test leads to black objects)
- Cuts of two compound (result unpredictable)

Probably most of operations are not implemented and do not work.

As far as I understand, a fusion should be made with the components of the compound before being used for further operation. If so it is just deferring the fusion operation! Am I right?

I have the feeling they are not usefull and could be replaced by fusions!

If you want an example I can build one.
Last edited by plgarcia on Thu Feb 22, 2018 9:34 am, edited 1 time in total.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Compound parts

Post by triplus »

Hi @plgarcia.

Here you can read what it is and when you can expect troubles if using boolean operations between compounds:

https://www.freecadweb.org/wiki/Part_MakeCompound
plgarcia wrote: Sun Feb 18, 2018 11:54 am I have the feeling they are not usefull and could be replaced by fusions!
It depends on the use case. Sometimes you do want a compound and sometimes a fusion. A fusion between two solids takes more computation, can fail and the result is a solid. With compound you get a single object and there isn't anything special going on when creating it. Like for example trying to join two solids in new solid.
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Compound parts

Post by chrisb »

plgarcia wrote: Sun Feb 18, 2018 11:54 am Hello
Can somebody tell me or point me the documentation page if available that explain what compounds are used for, what functional difference with cuts and what gain is expected.
A compound is a collection of objects tha tcan be moved together. If they don't intersect it behaves almost like a Union.
The problem is that compounds do not work completely.
Here are some cases they do not work:
- Fusion of two compound (In my test leads to black objects)
- Cuts of two compound (result unpredictable)
If you want boolean operations it is best to take boolean operations. Usually this means to make a Fusion instead of a compound. Compounds leave the objects as they are, you can see it at the missing seams. They seem to be faster than fusions.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
plgarcia
Posts: 310
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: Compound parts

Post by plgarcia »

Ok I see.
This has been invented for performance reasons for parts not intersecting but no control is made to verify if this condition is met.

Thanks for this information.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Compound parts

Post by triplus »

plgarcia wrote: Mon Feb 19, 2018 9:59 am This has been invented for performance reasons for parts not intersecting but no control is made to verify if this condition is met.
Not exactly. As explained compound and fusion are basically totally different things. Geometry in a compound can intersect. If using such compound after in boolean operations (containing geometry that intersects). You can expect issues.

One use case for a compound is/was to for example add drawing views in Drawing workbench. As you could only select one object (TechDraw improved this area).
plgarcia
Posts: 310
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: Compound parts

Post by plgarcia »

Thank you. I think I clearly understand now!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Compound parts

Post by microelly2 »

Compounds are used for the animation of groups of objects. It's like an assembly. You can rotate some gears and move the whole engine as a Compound.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Compound parts

Post by triplus »

plgarcia wrote: Tue Feb 20, 2018 12:11 pm Thank you. I think I clearly understand now!
You're welcome.
User avatar
Cekuhnen
Posts: 443
Joined: Sat Jul 10, 2021 11:37 pm

Re: What Compound parts are made for?

Post by Cekuhnen »

Fast forward 2021
.
Can compounds also be used in part WB to create a single object ID similar to a part?
.
Further :
When using multiple objects with Boolean commands the nesting can be very hard to navigate and show hide only the state of a feature set the results into a final body.
.
.
Screen Shot 2021-07-27 at 8.49.45 PM.png
Screen Shot 2021-07-27 at 8.49.45 PM.png (29.35 KiB) Viewed 2484 times
.
.
When using the build in part command the design tree gets very dense:
I assume this is because of how it is nested?
Screen Shot 2021-07-27 at 9.34.29 PM.png
Screen Shot 2021-07-27 at 9.34.29 PM.png (110.61 KiB) Viewed 2449 times
MacOS Big Sur / Win 10

Designer | Faculty
Wayne State University
Interior - Industrial Design
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: What Compound parts are made for?

Post by chrisb »

Every object has a unique name, which can differ from the label shown in the tree. As far as I know, realthunder has beyond that introduced a special ID in connection with the toponaming. He has also done special things concerning visibility.

We had asked you, not to open for everything a new topic. I am pleased to see, that you follow the advice, but this wasn't meant to search and necrobump very old topics, possibly even based on previous stable versions. It is then better to create a new topic and link the old one. The hint was rather meant concerning your own topics with the same model recurring.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply