support already meshed edges/faces in occ mesher

This commit is contained in:
Christopher Lackner 2020-05-26 11:23:33 +02:00
parent 897cf6f848
commit 34590f1b9a

View File

@ -365,6 +365,7 @@ namespace netgen
{ {
TopoDS_Face face = TopoDS::Face(exp1.Current()); TopoDS_Face face = TopoDS::Face(exp1.Current());
int facenr = geom.fmap.FindIndex(face); int facenr = geom.fmap.FindIndex(face);
if(facenr < 1) continue;
if (face2solid[0][facenr-1] == 0) if (face2solid[0][facenr-1] == 0)
face2solid[0][facenr-1] = solidnr; face2solid[0][facenr-1] = solidnr;
@ -382,8 +383,7 @@ namespace netgen
int facenr = 0; int facenr = 0;
int edgenr = 0; int edgenr = mesh.GetNSeg();
(*testout) << "faces = " << geom.fmap.Extent() << endl; (*testout) << "faces = " << geom.fmap.Extent() << endl;
int curr = 0; int curr = 0;
@ -449,6 +449,8 @@ namespace netgen
continue; continue;
} }
if(geom.emap.FindIndex(edge) < 1) continue;
if (geom.vmap.FindIndex(TopExp::FirstVertex (edge)) == if (geom.vmap.FindIndex(TopExp::FirstVertex (edge)) ==
geom.vmap.FindIndex(TopExp::LastVertex (edge))) geom.vmap.FindIndex(TopExp::LastVertex (edge)))
{ {