mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20: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
|
class DLL_HEADER MeshingParameters
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
3d optimization strategy:
|
3d optimization strategy:
|
||||||
// m .. move nodes
|
// m .. move nodes
|
||||||
@ -1131,6 +1124,8 @@ namespace netgen
|
|||||||
///
|
///
|
||||||
MeshingParameters (const MeshingParameters & mp2) = default;
|
MeshingParameters (const MeshingParameters & mp2) = default;
|
||||||
MeshingParameters (MeshingParameters && mp2) = default;
|
MeshingParameters (MeshingParameters && mp2) = default;
|
||||||
|
MeshingParameters & operator= (const MeshingParameters & mp2) = default;
|
||||||
|
MeshingParameters & operator= (MeshingParameters && mp2) = default;
|
||||||
///
|
///
|
||||||
void Print (ostream & ost) const;
|
void Print (ostream & ost) const;
|
||||||
///
|
///
|
||||||
|
@ -465,16 +465,24 @@ DLL_HEADER void ExportNetgenMeshing()
|
|||||||
.def ("SetMaterial", &Mesh::SetMaterial)
|
.def ("SetMaterial", &Mesh::SetMaterial)
|
||||||
.def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr)
|
.def ("GetMaterial", FunctionPointer([](Mesh & self, int domnr)
|
||||||
{ return string(self.GetMaterial(domnr)); }))
|
{ return string(self.GetMaterial(domnr)); }))
|
||||||
|
|
||||||
.def ("GenerateVolumeMesh", FunctionPointer
|
.def ("GenerateVolumeMesh", FunctionPointer
|
||||||
([](Mesh & self)
|
([](Mesh & self, bp::object pymp)
|
||||||
{
|
{
|
||||||
cout << "generate vol mesh" << endl;
|
cout << "generate vol mesh" << endl;
|
||||||
|
|
||||||
MeshingParameters mp;
|
MeshingParameters mp;
|
||||||
mp.optsteps3d = 5;
|
if (bp::extract<MeshingParameters>(pymp).check())
|
||||||
|
mp = bp::extract<MeshingParameters>(pymp)();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mp.optsteps3d = 5;
|
||||||
|
}
|
||||||
MeshVolume (mp, self);
|
MeshVolume (mp, self);
|
||||||
OptimizeVolume (mp, self);
|
OptimizeVolume (mp, self);
|
||||||
}))
|
}),
|
||||||
|
(bp::arg("self"), bp::arg("mp")=bp::object())
|
||||||
|
)
|
||||||
|
|
||||||
.def ("OptimizeVolumeMesh", FunctionPointer
|
.def ("OptimizeVolumeMesh", FunctionPointer
|
||||||
([](Mesh & self)
|
([](Mesh & self)
|
||||||
|
Loading…
Reference in New Issue
Block a user