ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.Voxel Namespace / VoxelVariableProfile Class / GetIsosurfaceColor Method
The value to return the color for
Example Version

GetIsosurfaceColor Method
Gets the corresponding isosurface color for the specific value. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public CIMColor GetIsosurfaceColor( 
   double value
)

Parameters

value
The value to return the color for

Return Value

Remarks
The returned color is controlled by the color range and color scheme of the underlying variable profile's renderer
Example
Change Isourface Color Back to Default
//var voxelLayer = ... ;
//Must be on the QueuedTask.Run()
//var variable = ...;
//var surface = ...;

if (surface.IsCustomColor)
{
    surface.Color = variable.GetIsosurfaceColor((double)surface.Value);
    surface.IsCustomColor = false;
    //update the surface
    variable.UpdateIsosurface(surface);
}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also