mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-21 01:30:50 +05:00
vs setmesh
This commit is contained in:
parent
b9e2e8bf7a
commit
d26ccd8580
@ -276,6 +276,8 @@ void Ng_LoadMesh (const char * filename)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
mesh.reset (new Mesh());
|
mesh.reset (new Mesh());
|
||||||
|
vssolution.SetMesh(mesh);
|
||||||
|
vsmesh.SetMesh(mesh);
|
||||||
mesh->SendRecvMesh();
|
mesh->SendRecvMesh();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -68,6 +68,12 @@ namespace netgen
|
|||||||
ClearSolutionData();
|
ClearSolutionData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VisualSceneSolution :: SetMesh (shared_ptr<Mesh> amesh)
|
||||||
|
{
|
||||||
|
wp_mesh = amesh;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void VisualSceneSolution :: AddSolutionData (SolData * sd)
|
void VisualSceneSolution :: AddSolutionData (SolData * sd)
|
||||||
{
|
{
|
||||||
shared_ptr<Mesh> mesh(wp_mesh);
|
shared_ptr<Mesh> mesh(wp_mesh);
|
||||||
|
@ -186,7 +186,7 @@ public:
|
|||||||
virtual void DrawScene ();
|
virtual void DrawScene ();
|
||||||
virtual void MouseDblClick (int px, int py);
|
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); }
|
shared_ptr<Mesh> GetMesh () { return shared_ptr<Mesh>(wp_mesh); }
|
||||||
|
|
||||||
void BuildFieldLinesPlot ();
|
void BuildFieldLinesPlot ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user