mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
back to trying both occ surface-meshing versions
This commit is contained in:
parent
157b246f7f
commit
54af8014c4
@ -643,7 +643,7 @@ namespace netgen
|
|||||||
Box<3> bb = geom.GetBoundingBox();
|
Box<3> bb = geom.GetBoundingBox();
|
||||||
|
|
||||||
// int projecttype = PLANESPACE;
|
// int projecttype = PLANESPACE;
|
||||||
int projecttype = PARAMETERSPACE;
|
// int projecttype = PARAMETERSPACE;
|
||||||
|
|
||||||
static Timer tinit("init");
|
static Timer tinit("init");
|
||||||
tinit.Start();
|
tinit.Start();
|
||||||
@ -840,7 +840,8 @@ namespace netgen
|
|||||||
cout << "retry Surface " << k << endl;
|
cout << "retry Surface " << k << endl;
|
||||||
|
|
||||||
k--;
|
k--;
|
||||||
projecttype*=-1;
|
// projecttype*=-1;
|
||||||
|
projecttype = PLANESPACE;
|
||||||
notrys++;
|
notrys++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include <BOPAlgo_MakerVolume.hxx>
|
#include <BOPAlgo_MakerVolume.hxx>
|
||||||
#include <BOPAlgo_Section.hxx>
|
#include <BOPAlgo_Section.hxx>
|
||||||
#include <BRepAlgoAPI_Cut.hxx>
|
#include <BRepAlgoAPI_Cut.hxx>
|
||||||
|
#include <BRepAlgoAPI_Section.hxx>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -244,6 +245,7 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
.def("__mul__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2)
|
.def("__mul__", [] (const TopoDS_Shape & shape1, const TopoDS_Shape & shape2)
|
||||||
{
|
{
|
||||||
// https://dev.opencascade.org/doc/occt-7.3.0/overview/html/occt_user_guides__boolean_operations.html#occt_algorithms_10a
|
// https://dev.opencascade.org/doc/occt-7.3.0/overview/html/occt_user_guides__boolean_operations.html#occt_algorithms_10a
|
||||||
|
|
||||||
BOPAlgo_MakerVolume aMV;
|
BOPAlgo_MakerVolume aMV;
|
||||||
// BOPAlgo_Section aMV; // only vertices + edges
|
// BOPAlgo_Section aMV; // only vertices + edges
|
||||||
// BOPAlgo_Builder aMV;
|
// BOPAlgo_Builder aMV;
|
||||||
@ -257,6 +259,19 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
aMV.Perform();
|
aMV.Perform();
|
||||||
// aMV.Build();
|
// aMV.Build();
|
||||||
return aMV.Shape();
|
return aMV.Shape();
|
||||||
|
|
||||||
|
/*
|
||||||
|
// ?????
|
||||||
|
// auto cut = BRepAlgoAPI_Cut (shape1, shape2);
|
||||||
|
auto cut = BRepAlgoAPI_Section (shape1, shape2);
|
||||||
|
TopTools_ListOfShape aLSObjects;
|
||||||
|
aLSObjects.Append (cut);
|
||||||
|
|
||||||
|
BOPAlgo_MakerVolume aMV;
|
||||||
|
aMV.SetArguments(aLSObjects);
|
||||||
|
aMV.Perform();
|
||||||
|
return aMV.Shape();
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user