mesh to surface, how to do?

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!
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

mesh to surface, how to do?

Post by Norus »

Hello again,

working with bones and implants the question appears: how to get a surface (FreeCAD understands) from a stl-file.

The file comes from meshmixer.

thanks a lot
Attachments
grid_to_surface.FCStd
(970.69 KiB) Downloaded 77 times
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: mesh to surface, how to do?

Post by chrisb »

This has very often been discussed: Part->ShapeFromMesh.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: mesh to surface, how to do?

Post by drmacro »

chrisb wrote: Mon Jun 29, 2020 12:48 pm This has very often been discussed: Part->ShapeFromMesh.
It doesn't produce any thing...it does create a feature in the tree, but nothing displays and error:

Code: Select all

<Part> ViewProviderExt.cpp(1324): Cannot compute Inventor representation for the shape of grid_to_surface#H__lle_aussen002001


OS: Ubuntu 19.10 (XFCE/ubuntustudio)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 2c56e3c9faec3accf134a2940d809dd44bcfbb3a
Python version: 3.7.5
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

Re: mesh to surface, how to do?

Post by Norus »

I am using the german version the function is: part_WB -> Formteil -> Form aus Dreiecksnetz erstellen. For me this is "shape from mesh".

But no effect, even a new part in the tree without any geometrie.

It works if a solid, from meshmixer for example, is used, not in case of a shape.
fc_tofu
Posts: 653
Joined: Sun Jan 05, 2020 4:56 pm

Re: mesh to surface, how to do?

Post by fc_tofu »

Norus wrote: Mon Jun 29, 2020 12:35 pm working with bones and implants the question appears: how to get a surface (FreeCAD understands) from a stl-file.
It seems your intent is to convert faceted mesh into curved surface (NURBS). Right?
But this is not design intent of "Mesh to surface".

"Mesh to surface" is design to handle very simple mesh model.

What you need is "Reverse Engineering"(RE) tool.

FreeCAD has 2 RE workbench, but both limited abilities.
1. stock installed, Reverse Engineer workbench.
2. from Addon Manager, Mesh Remodel. (or something like that).
User avatar
Quaoar
Posts: 106
Joined: Thu Jul 27, 2017 11:56 am
Location: Nizhny Novgorod
Contact:

Re: mesh to surface, how to do?

Post by Quaoar »

After playing with Instant Meshes and Coons surfaces in Analysis Situs:

http://quaoar.su/files/cases/autosurf01.stp
http://quaoar.su/files/cases/autosurf02.stp
Attachments
ms02.png
ms02.png (98.23 KiB) Viewed 2600 times
ms01.png
ms01.png (130.35 KiB) Viewed 2600 times
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: mesh to surface, how to do?

Post by chrisb »

drmacro wrote: Mon Jun 29, 2020 1:20 pm It doesn't produce any thing...it does create a feature in the tree, but nothing displays and error:
Works flawless here (tolerance 0.1), file is too big to attach, even without the FEM result:
Snip macro screenshot-2793f9.png
Snip macro screenshot-2793f9.png (175.68 KiB) Viewed 2594 times
OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21671 (Git)
Build type: Release
Branch: master
Hash: f05253f882b336f56aae32593faa5676fd5aafdd
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Quaoar
Posts: 106
Joined: Thu Jul 27, 2017 11:56 am
Location: Nizhny Novgorod
Contact:

Re: mesh to surface, how to do?

Post by Quaoar »

Single surface:
Attachments
ms03.png
ms03.png (157.25 KiB) Viewed 2588 times
onesurf01.stp
(59.65 KiB) Downloaded 56 times
FOSS CAD model inspection utility and prototyping framework: http://analysissitus.org
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

Re: mesh to surface, how to do?

Post by Norus »

It works in FreeCAD 0.19

Thank`s
Attachments
FreeCAD_019_mesh.PNG
FreeCAD_019_mesh.PNG (232.34 KiB) Viewed 2569 times
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: mesh to surface, how to do?

Post by drmacro »

chrisb wrote: Mon Jun 29, 2020 4:35 pm
drmacro wrote: Mon Jun 29, 2020 1:20 pm It doesn't produce any thing...it does create a feature in the tree, but nothing displays and error:
Works flawless here (tolerance 0.1), file is too big to attach, even without the FEM result:
Nope:
ShapeFromMesh.png
ShapeFromMesh.png (235.83 KiB) Viewed 2556 times
No display, but the file is 13Mb after executing Create shape from mesh...

Update: and if I load the file where it has worked from this thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=48186
It gets the same error when the file is loaded and nothing displayed... :roll:

Update: If I load the original file and set the tolerance to 0.01, instead of 0.1 it works. :? So why does it work at 0.1 on yours?

OS: Ubuntu 19.10 (XFCE/ubuntustudio)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 2c56e3c9faec3accf134a2940d809dd44bcfbb3a
Python version: 3.7.5
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply