Le 19-juin-09 à 18:08, [email protected] a écrit :

> Hi,
>
> I have built successfully the example utils/api-demos/mainSimple.cpp,
> and adapted it to read STEP files and mesh it in 2D. It works fine but
> the generated mesh has very small triangles compared to the one
> obtained by doing the same process with Gmsh GUI (loading the STEP
> file, Mesh>2D).
>
> It seams that I could use "fields" to influence the size of the
> generated triangles, but it looks way too powerful for what I need and
> I didn't catch how to use it. Is there a way to set the
> "characteristic length factor" from C++ , or something similar ?
>

Using C++

GmshSetOption("Mesh", "CharacteristicLengthMin", .1);
GmshSetOption("Mesh", "CharacteristicLengthMax", .1);

> Thank you very much.
>
> Best regards,
> Nicolas SAUGNIER
>
> _______________________________________________
> gmsh mailing list
> [email protected]
> http://www.geuz.org/mailman/listinfo/gmsh

----------------
Prof. Jean-Francois Remacle
Universite catholique de Louvain (UCL)
Tel : +32-10-472082 -- Mobile : +32-473-909930





_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to