[Gmsh] Compile Gmsh with OCC support

Mikhail Artemiev artemiev.mikhail at ngs.ru
Fri Sep 9 12:04:59 CEST 2011


>It is hard to figure out what is wrong without details.  See cmake
>output (especially lines containing OCC), it should give some
>informations.  Or better yet, copy output here so that we can help
>you.

Denis, thank you for your help!
I read a lot of cmake files and understood that maybe my CASROOT variable 
was slightly insufficient.
I added several paths to this variable and all worked. Now cmake detects 
Opencascade libs and headers automatically.
Indeed CASROOT is a very-very important variable.
I'm happy for OCC support activation.
But when I tried to mesh brep files I faced some troubles.
I'm working under Linux.
And here I can mesh a unit box and a unit sphere, but I cannot mesh a simple 
model - two spheres inside a unit box (attached ell0.brep):

Info    : Running 'gmsh ell0.geo -2' [1 node(s), max. 1 thread(s)]
Info    : Started on Fri Sep  9 16:54:42 2011
Info    : Reading 'ell0.brep'...
terminate called after throwing an instance of 'Standard_ConstructionError'
Aborted

However when I mesh this model under Windows, all works good.

To load brep file into Gmsh I use this geo file:

Geometry.OCCFixSmallEdges = 0;
Geometry.OCCFixSmallFaces = 0;
Mesh.Algorithm = 1;
Mesh.Algorithm3D = 1;
Merge "ell0.brep";

Windows: Gmsh 2.4.2, Gmsh 2.5.0
Linux Red Hat: Gmsh 2.4.2, Gmsh 2.5.1 nightly

Thanks
Mikhail Artemiev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ell0.brep
Type: application/octet-stream
Size: 10999 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20110909/384ee5ba/attachment.brep>