Problem converting STL to Freecad 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!
gbgb
Posts: 32
Joined: Fri Jul 18, 2014 5:28 am

Problem converting STL to Freecad solid

Post by gbgb »

I downloaded a design from Thingiverse which I would like to modify.
There are 5 STl files, 4 of which convert with no problems
One, which is the most complicated part, does not convert.
I follow the instructions in the Freecad wiki:
open stl
analyze and repair (this one had a problem with intersections which was repaired)
harmonize normals
fill holes
convert mesh to shape
make a copy - refine shape (this stage takes a long time on my PC - several minutes)
convert to solid

It is at the last stage that Freecad fails with an error message:
11:48:04 Traceback (most recent call last):
File "<string>", line 2, in <module>
<class 'Part.OCCError'>: Creation of solid failed:
11:48:04 Cannot convert Part_Cooling_Duct001001 because Creation of solid failed: .

Any idea?

Cannot upload problematic STL since it is too large.
This is a link to it in Thingiverse, and the problematic file is "part_cooling_duct"
https://www.thingiverse.com/thing:4002782
chrisb
Veteran
Posts: 53924
Joined: Tue Mar 17, 2015 9:14 am

Re: Problem converting STL to Freecad solid

Post by chrisb »

I didn't look at the file, but you may have multiple components in the mesh. Try "Split by components" before converting to shape and solid.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Problem converting STL to Freecad solid

Post by thomas-neemann »

gbgb wrote: Sat Jun 03, 2023 8:50 am
here it worked
Bildschirmfoto_2023-06-03_11-30-59.png
Bildschirmfoto_2023-06-03_11-30-59.png (108.02 KiB) Viewed 1132 times

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33345 (Git) AppImage
Build type: Release
Branch: master
Hash: a3c4f4bb01f5201daf666852444a8f9c5adbda8d
Python 3.10.11, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: Problem converting STL to Freecad solid

Post by jeno »

gbgb wrote: Sat Jun 03, 2023 8:50 am I downloaded a design from Thingiverse which I would like to modify.
...
It is at the last stage that Freecad fails with an error message:
...
11:48:04 Cannot convert Part_Cooling_Duct001001 because Creation of solid failed: .
Any idea?
There is a small issue with intersecting faces
Screenshot_20230603.png
Screenshot_20230603.png (120.31 KiB) Viewed 1103 times
I resolved it. You may try the modified file
https://upload.disroot.org/r/3foFK26u#O ... D9H2rfLG4=
Download is valid for 24h
Here

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git)
Build type: Release
...
Python 3.10.9, Qt 5.15.8, Coin 4.0.1, Vtk 9.2.6, OCC 7.6.3
...
no problem anymore

cheers

edit: with stitching on also the original file works. Seems that the intersect is very small.
gbgb
Posts: 32
Joined: Fri Jul 18, 2014 5:28 am

Re: Problem converting STL to Freecad solid

Post by gbgb »

I resolved it. You may try the modified file
https://upload.disroot.org/r/3foFK26u#O ... D9H2rfLG4=
Download is valid for 24h
Here
Thanks,
Missed the 24H deadline. will try to see if I can resolve the issue on my installation (both answers that solved it use Linux. I am on windows. I wonder if it makes a difference)
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Problem converting STL to Freecad solid

Post by thomas-neemann »

gbgb wrote: Sun Jun 04, 2023 10:59 am ... I wonder if it makes a difference)
in my opinion freecad runs best on xubuntu lts. is this an option for you?
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
gbgb
Posts: 32
Joined: Fri Jul 18, 2014 5:28 am

Re: Problem converting STL to Freecad solid

Post by gbgb »

in my opinion freecad runs best on xubuntu lts. is this an option for you?
Not at the moment - generally I am a windows user.
I have Ubuntu installed on a very old and weak PC, just for occasional use. If I get hold of a good enough PC I may install Ubuntu on it with some packages that I work with
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Problem converting STL to Freecad solid

Post by thomas-neemann »

gbgb wrote: Sun Jun 04, 2023 11:32 am ...
I have Ubuntu installed on a very old and weak PC,...
so you could test the current problem
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
gbgb
Posts: 32
Joined: Fri Jul 18, 2014 5:28 am

Re: Problem converting STL to Freecad solid

Post by gbgb »

thomas-neemann wrote: Sun Jun 04, 2023 11:35 am
gbgb wrote: Sun Jun 04, 2023 11:32 am ...
I have Ubuntu installed on a very old and weak PC,...
so you could test the current problem
Will try to install Freecad on it - it is VERY old
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Problem converting STL to Freecad solid

Post by GeneFC »

thomas-neemann wrote: Sun Jun 04, 2023 11:03 am in my opinion freecad runs best on xubuntu lts.
What does that mean?

There is no difference at all in the code for FreeCAD. The same master is used for all OS versions.

There can be differences in libraries, of course.

In my observation of the forum traffic there are at least 10X as many library problems for various flavors of Linux as there are for Windows. That is not to say that one is better than the other, however.

Many people use a great variety of FreeCAD installations quite successfully.

Gene
Post Reply