Generate surface mesh only from prespecified points and outline edges
I want to attain something similar to an old post which is in my case generating a triangle mesh from (and only from) existing nodes and outline edges via the Gmsh library API. Now that Gmsh 2.5.0 supports embedded vertices, the feature could be relatively easily achieved by the attached patch, with the usage of the form
GEdge *e0 = m-addLine(...) e0->meshAttributes.givenVerticesOnly = 1; ... GFace *f0 = m->addPlanarFace(edges); f0->meshAttributes.givenVerticesOnly = 1; m->mesh(2);
where m is a GModel instance and f0 is a pointer to a surface where one wants to mesh only using the existing nodes. The attached patch is just a proposal and more should be done for binding with the Gmsh scripting language , but it would be great to have this kind of feature in a future version of Gmsh. In particular, this is a feature that may be considered vital for GIS (geographical information system) applications.
Takuya OSHIMA
0001-Add-givenVerticesOnly-option-that-creates-edge-surfa.patch