Fill a hollow solid

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!
saeppi
Posts: 21
Joined: Sun Jan 07, 2018 2:07 pm

Fill a hollow solid

Post by saeppi »

Hello,
I've got a GL32 screw cap which is open on both ends. I need to fill the space in between so I can use the new solid in a Boolean operation (cutting another solid with this filled screw cap). Is there way to do this in FreeCAD?
Image

-----------------------------
OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.2)
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Fill a hollow solid

Post by openBrain »

There are many ways. But basically depend on where your object comes from. STEP file, mesh, Part or PartDesign, ...
Could you please attach the model as it is currently ?
saeppi
Posts: 21
Joined: Sun Jan 07, 2018 2:07 pm

Re: Fill a hollow solid

Post by saeppi »

Hi openBrain,
of course: GL fill.FCStd
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Fill a hollow solid

Post by chrisb »

I performed a checkGeometry with BOPCheck enabled and I'm afraid you will not get very far with this: It took very long at 100% CPU and finally came up with lots of errors (BOPAlgo_GeomAbs_C0, and BOPAlgo_InvalidCurveOnSurface).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Fill a hollow solid

Post by openBrain »

OK, as the G32 shape looks like a "skin" (an open shell actually), here is what I did to get a solid.
  1. Using Defeaturing Workbench, create the 2 missing faces by selecting the appropriate edges
  2. Select the original shape + the 2 created faces and use Draft Upgrade to get a shell
  3. Use Draft Upgrade a second time on the shell to get a solid
chrisb wrote: Wed Jun 19, 2019 9:00 pm I performed a checkGeometry with BOPCheck enabled and I'm afraid you will not get very far with this: It took very long at 100% CPU and finally came up with lots of errors (BOPAlgo_GeomAbs_C0, and BOPAlgo_InvalidCurveOnSurface).
Also see the check was highly loading the CPU, and finally canceled it. However I checked the above method making a boolean cut in the obtained solid, end everything seems OK. ;)
Last edited by openBrain on Wed Jun 19, 2019 9:16 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Fill a hollow solid

Post by chrisb »

I was successful as well by using the shell to slice a cylinder of appropriate size Radius=20, Height=17,9.
I cannot upload it here, because the file grows to 1.7 MB.
Attachments
Bildschirmfoto 2019-06-19 um 23.10.34.png
Bildschirmfoto 2019-06-19 um 23.10.34.png (51.43 KiB) Viewed 4375 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Fill a hollow solid

Post by openBrain »

File light enough to be forum compatible. Find attached. :)
Attachments
GL32_fill_OB.FCStd
(968 KiB) Downloaded 73 times
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Fill a hollow solid

Post by chrisb »

If I make a simple copy from the slice the filesize drops to 88KB too. Here the price for keeping it parametric is approximately doubling the size.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Fill a hollow solid

Post by TheMarkster »

One issue you might run into when you make an internal thread by cutting a solid using the external thread as a cutting tool is you won't have any tolerance. They'll both be the same size, making for a really tight fit, perhaps too tight. Consider scaling the cutting tool to some slightly larger size, but only in x and y directions.
saeppi
Posts: 21
Joined: Sun Jan 07, 2018 2:07 pm

Re: Fill a hollow solid

Post by saeppi »

Thanks all, that did the job very well!
(Had to create a simple copy in order to use it in a Boolean operation, though)
Post Reply