[Gmsh] Gmsh with Occ shapes

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Jul 17 22:12:03 CEST 2013


On 13 Jul 2013, at 11:25, eren adak <erad03 at gmail.com> wrote:

> Hi,
> 
> I am trying to use gmsh as a mesh framework on my MFC MDI app.
> 
> 
> following statement works and i can open all files in tutorial directory
> 
> m->readGEO("C:/Users/Anonymous/Desktop/gmsh-svn-Windows64-dynamic/gmsh-2.7.2-dynamic-svn-Windows/tutorial/t5.geo");
> 
> but when i try to open .brep files with the following statement nothing happens
> 
> m->readOCCBREP( "C:/Users/Anonymous/Desktop/aFile.brep" );
> 

This looks good. Did you correctly configure and link the lib with OCC support? Do you get any message? (don't forget to enable messges, e.g. with GmshSetOption("General", "Terminal", 1.0))


> i tried to check the same .brep file in gmsh. It works without any problem.
> 
> Which statements should be used to open .brep files ?
> 
> P.S
> 
> I built gmsh in visual studio 2010 , win64 with OpenCascade support, and i use OCC to create .brep files.
> 
> I  used mainOCC in api demos same thing happens there as well, can't open .brep files.  
> 
> Best regards
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

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