mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
ngx mesh for stand-alone application
This commit is contained in:
parent
20381f37ac
commit
d5ae11a9b1
@ -161,8 +161,9 @@ namespace netgen
|
||||
class Mesh * mesh;
|
||||
|
||||
public:
|
||||
Ngx_Mesh () { ; }
|
||||
Ngx_Mesh(class Mesh * amesh) : mesh(amesh) { ; }
|
||||
// Ngx_Mesh () { ; }
|
||||
// Ngx_Mesh(class Mesh * amesh) : mesh(amesh) { ; }
|
||||
Ngx_Mesh(class Mesh * amesh = NULL);
|
||||
void LoadMesh (const string & filename);
|
||||
|
||||
virtual ~Ngx_Mesh();
|
||||
|
@ -21,6 +21,14 @@ namespace netgen
|
||||
#define NGX_INLINE
|
||||
#include "nginterface_v2_impl.hpp"
|
||||
|
||||
Ngx_Mesh :: Ngx_Mesh (class Mesh * amesh)
|
||||
{
|
||||
if (amesh)
|
||||
mesh = amesh;
|
||||
else
|
||||
mesh = netgen::mesh.Ptr();
|
||||
}
|
||||
|
||||
Ngx_Mesh * LoadMesh (const string & filename)
|
||||
{
|
||||
netgen::mesh.Ptr() = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user