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

In This Topic
    GetIsosurfaceColor Method
    In This Topic
    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
    )
    Public Function GetIsosurfaceColor( _
       ByVal value As Double _
    ) As CIMColor

    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.0 or higher.
    See Also