[Gmsh] Mesh & Topshape, Brep

Christophe Geuzaine cgeuzaine at uliege.be
Mon Jun 8 22:58:17 CEST 2020



> On 8 Jun 2020, at 20:05, Keith Sloan <keith at sloan-home.co.uk> wrote:
> 
> I am looking at using Gmsh in a FreeCAD Workbench.
> 
> I see 
> 
> "Actually gmsh::model::occ::importShapeNativePointer() was originally only designed to work with the C++ and C APIs, and has been removed from the Python and Julia APIs in Gmsh 4.4.
> 
> If a Python specialist can help in making a new version of the function that actually works in Python, we would be happy to re-add it (even if of course such a function is intrinsically "unsafe").
> 
> Christophe"
> 
> So it looks like I would have to export the Shape I wish to work on as a Brep file and
> import that into Gmsh.

Exact.

> After meshing is there any easy option to create a Brep file or TopShape version of the mesh?

A Brep file is not designed to hold a finite element mesh. The Gmsh API gives you full access to the mesh, so you can transfer it in any form you wish.

Christophe

> 
> Thanks Keith
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list