mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
[mesh] set/get geometry
This commit is contained in:
parent
1337786e73
commit
7078fc999e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user