mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-05 01:14:16 +05:00
[mesh] set/get geometry
This commit is contained in:
parent
1337786e73
commit
7078fc999e
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <mystdlib.h>
|
#include <mystdlib.h>
|
||||||
#include "meshing.hpp"
|
#include "meshing.hpp"
|
||||||
|
#include <csg.hpp>
|
||||||
|
#include <geometry2d.hpp>
|
||||||
|
|
||||||
|
|
||||||
using namespace netgen;
|
using namespace netgen;
|
||||||
@ -454,6 +456,18 @@ DLL_HEADER void ExportNetgenMeshing()
|
|||||||
Refinement().Refine(self);
|
Refinement().Refine(self);
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
.def ("SetGeometry", FunctionPointer
|
||||||
|
([](Mesh & self, shared_ptr<CSGeometry> geo)
|
||||||
|
{
|
||||||
|
self.SetGeometry(geo);
|
||||||
|
}))
|
||||||
|
|
||||||
|
.def ("SetGeometry", FunctionPointer
|
||||||
|
([](Mesh & self, shared_ptr<SplineGeometry2d> geo)
|
||||||
|
{
|
||||||
|
self.SetGeometry(geo);
|
||||||
|
}))
|
||||||
|
|
||||||
.def ("BuildSearchTree", &Mesh::BuildElementSearchTree)
|
.def ("BuildSearchTree", &Mesh::BuildElementSearchTree)
|
||||||
|
|
||||||
.def ("BoundaryLayer", FunctionPointer
|
.def ("BoundaryLayer", FunctionPointer
|
||||||
|
Loading…
Reference in New Issue
Block a user