convert to solid doesn't work :(

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!
spilz
Posts: 14
Joined: Thu Jul 14, 2016 9:27 am

Re: convert to solid doesn't work :(

Post by spilz » Wed May 09, 2018 11:20 am

Hello,
it will be very nice if you can repair it,
if you know a tuto to lurn how to do it with freecad or meshlab, i will read it :)

thanks

plgarcia
Posts: 305
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: convert to solid doesn't work :(

Post by plgarcia » Sun May 19, 2019 5:28 pm

Dear all,
I find the same problem as the one described here in the version 0.19.
I believe this has not been corrected.

Here is the list of commands recorded in the command window when I activate the menu part>Convert to Solid

>>> import Part
>>> __s__=App.ActiveDocument.Panther_V1_body001.Shape.Faces
>>> __s__=Part.Solid(Part.Shell(__s__))
>>> __o__=App.ActiveDocument.addObject("Part::Feature","Panther_V1_body001_solid")
>>> __o__.Label="Panther_V1_body001 (Solid)"
>>> __o__.Shape=__s__
>>> del __s__, __o__

But the part Panther_V1_body001_solid is not created.

But if I run these commands one by one, it thakes quite a lot of time (this panther is constituted of thousands of faces). The important to notice is the difference of the time.

To be continued
Last edited by plgarcia on Sun May 19, 2019 5:40 pm, edited 1 time in total.

openBrain
Posts: 3843
Joined: Fri Nov 09, 2018 5:38 pm

Re: convert to solid doesn't work :(

Post by openBrain » Sun May 19, 2019 5:39 pm

@plgarcia : I doubt there is something to fix in that case. If the mesh file is lamous, FC just can't convert it to solid. ;) What could be eventually done is to enhance FC mesh tools, but this isn't really the core work of it.

@plgarcia, @spilz
IMHO FreeCAD isn't the best software to work with meshes. It is more focused on solid modeling despite it has some good mesh processing tools. ;)

Oppositely, Blender (which is focused on mesh design) has 2 excellent toolboxes that may fit your needs (and more). They are "3D Print Toolbox" & "Mesh Analysis".
Here is a link I just found with a web search. I don't know its quality, but at least with this page you can have a quick overview of its abilities => https://daler.github.io/blender-for-3d- ... blems.html

Once the mesh file is clean, FC will probably accept to convert it to solid. ;)

User avatar
DeepSOIC
Posts: 7600
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: convert to solid doesn't work :(

Post by DeepSOIC » Sun May 19, 2019 7:12 pm

The conversion doesn't work because the mesh contains two disconnected solids.

Part Explode before converting to solid helps. Boolean operations seem to work.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16267 (Git)
Build type: Release
Branch: master
Hash: ddb335cfe057336f1958d68126bb0471328d735c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)

plgarcia
Posts: 305
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: convert to solid doesn't work :(

Post by plgarcia » Sun May 19, 2019 9:28 pm

The problem is different.
There is an error when I launch the commands one after the other:
Traceback (most recent call last):
File "<input>", line 1, in <module>
Part.OCCError: Shape is not a shell

The problem is then not to report this error to the user.

Check geometry shows 35000 faces and 3 shells. Here is the reason!

Regards

plgarcia
Posts: 305
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: convert to solid doesn't work :(

Post by plgarcia » Wed May 22, 2019 11:35 am

Hello,
I wonder if it would no be good for FreeCAD to maintain with the information of the mesh (number of vertices, faces, shells etc) so it is always available for information, and also for the function to make a check before being executed and reporting a nice and comprehensible message.
Regards

Post Reply