[Gmsh] different return types with addRuledFaces function in GModel.cpp and GModelFactory.cpp
Benjamin Ruard
ruard at artenum.com
Tue May 15 12:17:35 CEST 2012
Hi,
The file
gmsh/wrappers/java/WrappingJava/src/main/java/com/artenum/sample/EssaiGmsh_v1.java can help you. There is an example of how use addRuledFaces function.
Le mardi 15 mai 2012 à 12:00 +0200,
rteycisy at gmail.com a écrit :
>
> Hi,
>
> I'm confused, in GModel.cpp:
>
> void GModel::addRuledFaces (std::vector<std::vector<GEdge *> > edges)
> {
> if(_factory)
> _factory->addRuledFaces(this, edges);
> }
>
> but in GModelFactory.cpp:
>
> std::vector<GFace *> GeoFactory::addRuledFaces(GModel *gm,
>
> std::vector<std::vector<GEdge *> > edges)
> {
> ...
>
> And I tried to call a void version of this function using Gmsh factory and
> nothing happens.
>
> What's the correct way of generating a ruled surface using Gmsh as a
> library?
>
> Many thanks.
Benjamin JEANTY-RUARD
--------------------
Artenum Toulouse - Science & Groupware
http://www.artenum.com
Bâtiment Calfocenter
10, rue Marguerite Long
31320 Castanet-Tolosan
France
Phone: +33 (0)5 82 95 19 00