mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
delete user-vis
This commit is contained in:
parent
b65b6c90ec
commit
2bd9acdd9e
@ -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 ()
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user