mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
meshing parameters to vol-meshing
This commit is contained in:
parent
87656d3b87
commit
b5571213f4
@ -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;
|
||||
///
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user