mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
delete user-vis
This commit is contained in:
parent
b65b6c90ec
commit
2bd9acdd9e
@ -29,6 +29,11 @@ namespace netgen
|
||||
// vssolution.AddUserVisualizationObject (vis);
|
||||
GetVSSolution().AddUserVisualizationObject (vis);
|
||||
}
|
||||
void DeleteUserVisualizationObject (UserVisualizationObject * vis)
|
||||
{
|
||||
// vssolution.AddUserVisualizationObject (vis);
|
||||
GetVSSolution().DeleteUserVisualizationObject (vis);
|
||||
}
|
||||
|
||||
|
||||
VisualSceneSolution :: SolData :: SolData ()
|
||||
|
@ -233,7 +233,12 @@ public:
|
||||
{
|
||||
user_vis.Append (vis);
|
||||
}
|
||||
|
||||
void DeleteUserVisualizationObject (UserVisualizationObject * vis)
|
||||
{
|
||||
int pos = user_vis.Pos(vis);
|
||||
if (pos >= 0)
|
||||
user_vis.Delete(pos);
|
||||
}
|
||||
|
||||
private:
|
||||
void GetClippingPlaneTrigs (NgArray<ClipPlaneTrig> & trigs, NgArray<ClipPlanePoint> & pts);
|
||||
|
Loading…
Reference in New Issue
Block a user