vs setmesh

This commit is contained in:
Joachim Schoeberl 2014-10-09 09:00:50 +00:00
parent b9e2e8bf7a
commit d26ccd8580
3 changed files with 9 additions and 1 deletions

View File

@ -276,6 +276,8 @@ void Ng_LoadMesh (const char * filename)
else
{
mesh.reset (new Mesh());
vssolution.SetMesh(mesh);
vsmesh.SetMesh(mesh);
mesh->SendRecvMesh();
}
#endif

View File

@ -68,6 +68,12 @@ namespace netgen
ClearSolutionData();
}
void VisualSceneSolution :: SetMesh (shared_ptr<Mesh> amesh)
{
wp_mesh = amesh;
}
void VisualSceneSolution :: AddSolutionData (SolData * sd)
{
shared_ptr<Mesh> mesh(wp_mesh);

View File

@ -186,7 +186,7 @@ public:
virtual void DrawScene ();
virtual void MouseDblClick (int px, int py);
void SetMesh (shared_ptr<Mesh> amesh) { wp_mesh = amesh; }
void SetMesh (shared_ptr<Mesh> amesh);
shared_ptr<Mesh> GetMesh () { return shared_ptr<Mesh>(wp_mesh); }
void BuildFieldLinesPlot ();