meshing parameters to vol-meshing

This commit is contained in:
Joachim Schöberl 2016-10-20 13:19:24 +02:00
parent 87656d3b87
commit b5571213f4
2 changed files with 14 additions and 11 deletions

View File

@ -1020,13 +1020,6 @@ namespace netgen
class DLL_HEADER MeshingParameters
{
public:
/**
3d optimization strategy:
// m .. move nodes
@ -1131,6 +1124,8 @@ namespace netgen
///
MeshingParameters (const MeshingParameters & mp2) = default;
MeshingParameters (MeshingParameters && mp2) = default;
MeshingParameters & operator= (const MeshingParameters & mp2) = default;
MeshingParameters & operator= (MeshingParameters && mp2) = default;
///
void Print (ostream & ost) const;
///

View File

@ -465,16 +465,24 @@ DLL_HEADER void ExportNetgenMeshing()
.def ("SetMaterial", &Mesh::SetMaterial)
.def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr)
{ return string(self.GetMaterial(domnr)); }))
.def ("GenerateVolumeMesh", FunctionPointer
([](Mesh & self)
([](Mesh & self, bp::object pymp)
{
cout << "generate vol mesh" << endl;
MeshingParameters mp;
mp.optsteps3d = 5;
if (bp::extract<MeshingParameters>(pymp).check())
mp = bp::extract<MeshingParameters>(pymp)();
else
{
mp.optsteps3d = 5;
}
MeshVolume (mp, self);
OptimizeVolume (mp, self);
}))
}),
(bp::arg("self"), bp::arg("mp")=bp::object())
)
.def ("OptimizeVolumeMesh", FunctionPointer
([](Mesh & self)