mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
CSG - consistent parameters for FindIdenticSurfaces, call it in Draw() before CalcTriangleApproximation
This commit is contained in:
parent
69f990d8bf
commit
fa05864df4
@ -949,6 +949,7 @@ namespace netgen
|
||||
{
|
||||
int inv;
|
||||
int nsurf = GetNSurf();
|
||||
identicsurfaces.DeleteData();
|
||||
|
||||
|
||||
isidenticto.SetSize(nsurf);
|
||||
|
@ -676,6 +676,7 @@ However, when r = 0, the top part becomes a point(tip) and meshing fails!
|
||||
.def("Draw", FunctionPointer
|
||||
([] (shared_ptr<CSGeometry> self)
|
||||
{
|
||||
self->FindIdenticSurfaces(1e-8 * self->MaxSize());
|
||||
self->CalcTriangleApproximation(0.01, 20);
|
||||
ng_geometry = self;
|
||||
})
|
||||
@ -705,8 +706,8 @@ However, when r = 0, the top part becomes a point(tip) and meshing fails!
|
||||
auto surf = csg_geo->GetSurface(i);
|
||||
surfnames.push_back(surf->GetBCName());
|
||||
}
|
||||
csg_geo->FindIdenticSurfaces(1e-6);
|
||||
csg_geo->CalcTriangleApproximation(0.01,100);
|
||||
csg_geo->FindIdenticSurfaces(1e-8 * csg_geo->MaxSize());
|
||||
csg_geo->CalcTriangleApproximation(0.01,20);
|
||||
auto nto = csg_geo->GetNTopLevelObjects();
|
||||
size_t np = 0;
|
||||
size_t ntrig = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user