ArcGIS Pro 3.7 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 Function GetIsosurfaceColor( _
       ByVal value As Double _
    ) As CIMColor
    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 variable = voxelLayer.SelectedVariableProfile;
      //Change the color of the first surface for the given profile
      var surface = variable.GetIsosurfaces().FirstOrDefault();
      // Note: call within QueuedTask.Run()
      {
        if (surface.IsCustomColor)
        {
          surface.Color = variable.GetIsosurfaceColor((double)surface.Value);
          surface.IsCustomColor = false;
          //update the surface
          variable.UpdateIsosurface(surface);
        }
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also