mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
support already meshed edges/faces in occ mesher
This commit is contained in:
parent
897cf6f848
commit
34590f1b9a
@ -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)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user