[mesh] set/get geometry

This commit is contained in:
Christoph Lehrenfeld 2016-05-09 09:48:33 +02:00
parent 1337786e73
commit 7078fc999e

View File

@ -6,6 +6,8 @@
#include <mystdlib.h>
#include "meshing.hpp"
#include <csg.hpp>
#include <geometry2d.hpp>
using namespace netgen;
@ -454,6 +456,18 @@ DLL_HEADER void ExportNetgenMeshing()
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 ("BoundaryLayer", FunctionPointer