delete user-vis

This commit is contained in:
Joachim Schöberl 2019-10-11 22:23:14 +02:00
parent b65b6c90ec
commit 2bd9acdd9e
2 changed files with 11 additions and 1 deletions

View File

@ -29,6 +29,11 @@ namespace netgen
// vssolution.AddUserVisualizationObject (vis); // vssolution.AddUserVisualizationObject (vis);
GetVSSolution().AddUserVisualizationObject (vis); GetVSSolution().AddUserVisualizationObject (vis);
} }
void DeleteUserVisualizationObject (UserVisualizationObject * vis)
{
// vssolution.AddUserVisualizationObject (vis);
GetVSSolution().DeleteUserVisualizationObject (vis);
}
VisualSceneSolution :: SolData :: SolData () VisualSceneSolution :: SolData :: SolData ()

View File

@ -233,7 +233,12 @@ public:
{ {
user_vis.Append (vis); user_vis.Append (vis);
} }
void DeleteUserVisualizationObject (UserVisualizationObject * vis)
{
int pos = user_vis.Pos(vis);
if (pos >= 0)
user_vis.Delete(pos);
}
private: private:
void GetClippingPlaneTrigs (NgArray<ClipPlaneTrig> & trigs, NgArray<ClipPlanePoint> & pts); void GetClippingPlaneTrigs (NgArray<ClipPlaneTrig> & trigs, NgArray<ClipPlanePoint> & pts);