[Question] gmshModelGeoAddPlaneSurface: Error : Unknown curve 0
I am trying to create some bindings to gmsh. For that I am using gmsh-sdk
under Linux 64 (in particular, libgmsh.so.4.6.0
). I have managed to compile t1.c, so it doesn't look like a problem with the library.
On the other hand, I have managed to translate simple.c. I manage to create the CurveLoop
, but when I run gmshModelGeoAddPlaneSurface
I get the message::
Error : Unknown curve 0
while I have checked that addCurveLoop
returns 1
, and I have checked that I provided [1]
as the wireTags.
Any clue about what am I doing wrong?
By the way, it looks like simple.c should be:
gmshModelGeoAddPlaneSurface(s, 1, 6, &ierr);
instead of:
gmshModelGeoAddPlaneSurface(ll, 1, 6, &ierr);