mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
do not copy faces when extrude, better identify in extrude
This commit is contained in:
parent
e4a2795414
commit
2233275c0b
@ -998,7 +998,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
surf->D1 (0,0,p,du,dv);
|
surf->D1 (0,0,p,du,dv);
|
||||||
edir = du^dv;
|
edir = du^dv;
|
||||||
}
|
}
|
||||||
BRepPrimAPI_MakePrism builder(shape, h*edir, true);
|
BRepPrimAPI_MakePrism builder(shape, h*edir, false);
|
||||||
|
|
||||||
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX })
|
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX })
|
||||||
for (TopExp_Explorer e(shape, typ); e.More(); e.Next())
|
for (TopExp_Explorer e(shape, typ); e.More(); e.Next())
|
||||||
@ -1010,12 +1010,8 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
if(identify)
|
if(identify)
|
||||||
{
|
{
|
||||||
Transformation<3> trsf(h * occ2ng(edir));
|
Transformation<3> trsf(h * occ2ng(edir));
|
||||||
for (TopExp_Explorer e(shape, TopAbs_FACE); e.More(); e.Next()) {
|
Identify(GetFaces(shape), GetFaces(builder.LastShape()),
|
||||||
auto mods = builder.Generated(e.Current());
|
"extrusion_cs", idtype, trsf);
|
||||||
auto faces = GetFaces(mods.First());
|
|
||||||
Identify(faces, faces, "extrusion_cs", idtype,
|
|
||||||
trsf);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return builder.Shape();
|
return builder.Shape();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user