When cutting a cloned body from clones body behaviour is strange

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
iamisleape
Posts: 1
Joined: Thu Mar 30, 2023 7:49 pm
Location: Frankfurt Germany

When cutting a cloned body from clones body behaviour is strange

Post by iamisleape »

Hi,
as my first post - hello all! I want to say thanks for this great project... This is also my first attempt to participate... hope to help others in the future...

So here my topic...
I wanted t add some holes/cut-outs from a clones shape into a other clones shape.
Clones, because the cut out "disappears " in to the boolean operation and I can only use it "once" so I need one clone for each cut out - I think.

Why cut out from a clone? Because I design one "master part" and modify it's clone different from the master. e.g.
The master has a square hole and the clone gets two triangle holes - for example.

The strange thing... When I select the clone body, select the boolean op on this body and add a clone body that I want to subtract FC adds the "real" body into the boolean operation as well. It is however not visible in the list (in the parameter tree it is).
I think this seems weird - but not sure if it is weird or if this is not the intended use an I'm weired.

I can drag the "real body" back out of the boolean operation tree - and all is as I would expect it - but this looks more like the work around.

I attached a sample. The real bodys are redish.
The yellow one is a clone I use for testing. All other clones are grey.

I want to only subtract the yellow clone body from the clone box - nothing else. But also the real cut away body (red) is integrated in the boolean operation.

I'm using the weekly build of FreeCad. I check this issue(?) with the stable 20.2 as well - all the same behaviour.
I'm not sure if this is an error or my attempt is wrong.

I did not find a common posting - as the key words are really often used...
I could not think of other search topics. So sorry If this was already covered...

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32637 (Git) AppImage
Build type: Release
Branch: master
Hash: 7fa7cb7f0b222864be7416c683166876eab190bc
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Attachments
Bolean_sample_Sows_error.FCStd
after dragin it out of boolen op
(60.35 KiB) Downloaded 13 times
Bolean_sample_moved_out_manualy_Shows_error.FCStd
with real body secretley added
(57.61 KiB) Downloaded 11 times
hobbyist mechanic ... Electrical engineer as work - to afford the hobby...
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: When cutting a cloned body from clones body behaviour is strange

Post by chrisb »

Confirmed.
Additional observation: Removing the clone's source works with dragging it out, but not with removing it from the dialog's list.

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.32532 (Git)
Build type: Release
Branch: master
Hash: 20e44eba50e1365b9e7bb9c5c244afe96a627a28
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.5.0
  * dxf-library
  * fcgear 1.0.0
  * fasteners 0.4.54
  * sheetmetal 0.2.62
  * ExplodedAssembly
  * Curves 0.6.8
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
user1234
Veteran
Posts: 3345
Joined: Mon Jul 11, 2016 5:08 pm

Re: When cutting a cloned body from clones body behaviour is strange

Post by user1234 »

I have seen that too and confirm that. This bug is pretty is a few years old. Since nobody ever noticed that, i did not want to bother the devs, since that seems a very uncommon (but valid) operation. But since there are also other people need that, maybe someone can fix that.

I link the report here, issue #9154.


Greetings
user1234
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: When cutting a cloned body from clones body behaviour is strange

Post by GeneFC »

Not really a answer to the bug, but a suggestion.

Boolean operations in Part Design can be iffy.

When I need Booleans I generally switch to Part WB. Of course there are lots of potential gotchas when mixing Part and PD, but if done correctly it is quite robust.

You can even go back and make changes to the original sketches if needed.

Gene
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: When cutting a cloned body from clones body behaviour is strange

Post by wmayer »

If I understand the report correctly then the boolean feature contains an object and its clone in its Group property but it should only contain the clone, right?
I have tested it with a new project from scratch but I cannot confirm that adding the clone to the boolean adds the original object as well. Or do I overlook something?
Post Reply