Public Sub DeleteIsosurface( _ ByVal isosurfaceDef As IsosurfaceDefinition _ )
public void DeleteIsosurface( IsosurfaceDefinition isosurfaceDef )
Parameters
- isosurfaceDef
- The definition of the isosurface to delete.
Public Sub DeleteIsosurface( _ ByVal isosurfaceDef As IsosurfaceDefinition _ )
public void DeleteIsosurface( IsosurfaceDefinition isosurfaceDef )
| 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. |
{
// Note: call within 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 Home, Pro, Enterprise (64 bit)