[Gmsh] Save .geo file from python API

Jeremy Theler jeremy at seamplex.com
Thu Jul 12 12:50:10 CEST 2018


After the boolean operations, save the current model to a BREP with
gmsh.write("model.brep")

Then read back the BREP from the .geo with ShapeFromFile() 
Regards--jeremy thelerwww.seamplex.com id="-x-evo-selection-start-marker">

On Wed, 2018-07-11 at 17:04 +0300, Роман Бутов wrote:
> Is there a way to save geometry at python API after boolean operations, with physical zones etc, and then do meshing from the saved file?It is because boolean operations take a long time and it would be convenient to make them once. And then use the same geometry to generate different meshes.
> 
> Best regards,
> Roman
> 
> _______________________________________________gmsh mailing listgmsh at onelab.infohttp://onelab.info/mailman/listinfo/gmsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180712/c5cbfd8f/attachment-0001.html>


More information about the gmsh mailing list