Hello!

I got the same question as in "Constrain edges in 2D or STL meshing" thread from 2011-05-03 06:34:14 PDT. Can I prevent some edges from STL geometry from moving?

I tried to use Ng_STL_AddEdge, but can not get expected result. I do like the following:

Ng_STL_Geometry * geo = Ng_STL_NewGeometry();

// Add triengles. The figure is a tetrahedron. One its of edges is divided into 10 segments, so the figure is described with 22 triangles

for(…) {

Ng_STL_AddTriangle(geo, p1, p2, p3, n);

}

// add 10 segments (from tetrahedron's edge division) and 5 other edges. A total of 15 edges.

for(…) {

Ng_STL_AddEdge( geo, p1, p2);

}

Ng_Result res = Ng_STL_InitSTLGeometry( geo );

…

res = Ng_STL_GenerateSurfaceMesh( geom, ngMesh, &meshingParams );

Ng_SaveMesh( ngMesh, "testMesh_Surf.vol" );

the mesh is empty.

If I use Ng_STL_MakeEdges( geom, ngMesh, &meshingParams ); I get good not empty mesh, but it does not contain edges which I defined before geometry initialization.

Could you help me to solve this problem, please?

Thank you in advance!