Parameters
- value
- The value to return the color for
{
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);
}
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)