public void DeleteIsosurface( IsosurfaceDefinition isosurfaceDef )
Public Sub DeleteIsosurface( _ ByVal isosurfaceDef As IsosurfaceDefinition _ )
Parameters
- isosurfaceDef
- The definition of the isosurface to delete.
public void DeleteIsosurface( IsosurfaceDefinition isosurfaceDef )
Public Sub DeleteIsosurface( _ ByVal isosurfaceDef As IsosurfaceDefinition _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.ArgumentException | Isosurface not found in the collection of isosurfaces. |
//var voxelLayer = ... ; //Must be on the QueuedTask.Run() var variable = voxelLayer.SelectedVariableProfile; //delete the last surface var last_surface = variable.GetIsosurfaces().LastOrDefault(); if (last_surface != null) { variable.DeleteIsosurface(last_surface); } //delete all the surfaces foreach (var surface in variable.GetIsosurfaces()) variable.DeleteIsosurface(surface); //Optional - set visualization back to Volume if (variable.GetIsosurfaces().Count() == 0) { voxelLayer.SetVisualization(VoxelVisualization.Volume); }
Target Platforms: Windows 11, Windows 10