ngx mesh for stand-alone application

This commit is contained in:
Joachim Schoeberl 2014-01-20 09:30:17 +00:00
parent 20381f37ac
commit d5ae11a9b1
2 changed files with 11 additions and 2 deletions

View File

@ -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();

View File

@ -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;