embedded gmsh viewer without private API
Hi,
We are working on adding FEM capabilities to an electronic CAD software. We are using gmsh to mesh, sparselizard to solve, and we would like to get visual feedback using an embedded gmsh viewer.
We are using wxWidget, and here is our basic code to display figures (.pos files), which is based on the Qt example provided by the gmsh project:
https://gitlab.com/Drinausaur/kicad/-/blob/sparselizard/pcbnew/fem/gmsh_viewer.cpp
This works but I had to build gmsh with the DENABLE_PRIVATE_API option. Is there a way to achieve this without having to build gmsh with the DENABLE_PRIVATE_API option ? Whenever I try ( replacing draw3d()
and draw2d()
by gmsh::graphics::draw()
), I get a black screen instead of the viewer.
Thank you.