Getting solid out of compound

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!
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Getting solid out of compound

Post by hellsing48 »

Hello everyone,

I'm am new to FreeCad and I am trying to get the solid out of this shape:

Image

I tried making the box around it (bellow) and tried differnt ways to cut it using "Cutout for object", "Slice appart", "Make a cut of two shapes" but noting wokred.

Image

Next I also tried to close the volume using boxes in order to get something like a shell and than use Part/Convert to solid option but that also didn't work out.

Is there any way to do it sucessfuly?

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Attachments
hull.FCStd
(530.17 KiB) Downloaded 13 times
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Re: Getting solid out of compound

Post by hellsing48 »

I am still looking for a way to do this.

Any advice can be helpful.
heda
Posts: 648
Joined: Sat Dec 12, 2015 5:49 pm

Re: Getting solid out of compound

Post by heda »

use surface wb to "fill the holes", then part wb to go from a watertight shell to a solid (partbuilder).
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Re: Getting solid out of compound

Post by hellsing48 »

Thank you very much for answering. This is exactly what I am looking for!

I used "Filling" option to successfully cover the top.

Image

However I'm struggling to do the same for the front side. Seems like it manages to cover only part of it.
Do you have any advice how to deal with this?
Attachments
hull_topClosed.FCStd
(1002.36 KiB) Downloaded 6 times
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Re: Getting solid out of compound

Post by hellsing48 »

heda wrote: Sun Sep 05, 2021 3:02 pm use surface wb to "fill the holes", then part wb to go from a watertight shell to a solid (partbuilder).
Ok I managed to fully close it with adding some additional lines.

Image

Can you explain in a bit more details the second part, transforming to solid? How to go from a watertight shell to a solid?
kisolre
Posts: 3344
Joined: Wed Nov 21, 2018 1:13 pm

Re: Getting solid out of compound

Post by kisolre »

Part/Convert to solid
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Re: Getting solid out of compound

Post by hellsing48 »

kisolre wrote: Sun Sep 05, 2021 5:26 pm Part/Convert to solid
That is what I was trying to do. However I get the following error message:

19:47:22 Traceback (most recent call last):
File "<string>", line 2, in <module>
<class 'Part.OCCError'>: Shape is not a shell
19:47:22 Cannot convert Compound002 because Shape is not a shell.

Most likely it is because two surfaces can't be fully closed. Apparently the highlighted edge is causing the problem.

Image

Any ideas how to deal with it? The file is attached.

Thank you for your help guys. This is really getting somewhere.
Attachments
hull_closed1.FCStd
(881.62 KiB) Downloaded 5 times
TheMarkster
Posts: 2661
Joined: Thu Apr 05, 2018 1:53 am

Re: Getting solid out of compound

Post by TheMarkster »

I worked on this, but could never get a good solid that would pass check geometry before stopping.

If you zoom in really close you can see some issues where the edges are supposed to connect:
Snip macro screenshot-3208fc.png
Snip macro screenshot-3208fc.png (15.66 KiB) Viewed 374 times
I used lattice2 workbench downgrade to edges, explode compound to get that view.

I downgraded to faces in draft workbench, then part -> union on those faces. Somehow that magically fixed some of the gaps in some of the faces.
Attachments
Snip macro screenshot-eb2628.png
Snip macro screenshot-eb2628.png (36.83 KiB) Viewed 370 times
hull_markster-Shell009 (Solid).zip
(214.25 KiB) Downloaded 11 times
My FreeCAD video series on youtube: https://www.youtube.com/c/mwganson
hellsing48
Posts: 6
Joined: Wed Sep 01, 2021 1:20 pm

Re: Getting solid out of compound

Post by hellsing48 »

Wow brilliant, thank you TheMarkster :D

Thank you all for the help.
kisolre
Posts: 3344
Joined: Wed Nov 21, 2018 1:13 pm

Re: Getting solid out of compound

Post by kisolre »

Just out of curiosity - where did you get that shell from? Because the KCS_hull_SVA clearly has some problems...
Post Reply