mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'master' of gitlab.asc.tuwien.ac.at:jschoeberl/netgen
This commit is contained in:
commit
0c803d5175
@ -110,10 +110,9 @@ add_definitions(-DHAVE_CONFIG_H)
|
||||
# platform specific definitions and flags
|
||||
macro(get_WIN32_WINNT version)
|
||||
if (WIN32 AND CMAKE_SYSTEM_VERSION)
|
||||
set(ver ${CMAKE_SYSTEM_VERSION})
|
||||
string(REPLACE "." "" ver ${ver})
|
||||
string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
|
||||
|
||||
if("${CMAKE_SYSTEM_VERSION}" MATCHES "^([0-9]+)\\.([0-9]+)")
|
||||
math(EXPR ver "${CMAKE_MATCH_1}*100 + ${CMAKE_MATCH_2}")
|
||||
endif()
|
||||
set(${version} "0x${ver}")
|
||||
endif()
|
||||
endmacro()
|
||||
|
@ -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