Page 2 of 2

Re: convert to solid doesn't work :(

Posted: Wed May 09, 2018 11:20 am
by spilz
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

Re: convert to solid doesn't work :(

Posted: Sun May 19, 2019 5:28 pm
by plgarcia
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

Re: convert to solid doesn't work :(

Posted: Sun May 19, 2019 5:39 pm
by openBrain
@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. ;)

Re: convert to solid doesn't work :(

Posted: Sun May 19, 2019 7:12 pm
by DeepSOIC
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)

Re: convert to solid doesn't work :(

Posted: Sun May 19, 2019 9:28 pm
by plgarcia
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

Re: convert to solid doesn't work :(

Posted: Wed May 22, 2019 11:35 am
by plgarcia
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