Voxel Style

A voxel style allows you to define the visualization of the voxel layer. A voxel layer can be represented as volume or surface depending on your analysis needs. You can change the visibility of the different representations and change their drawing options.

Referenced by: voxelLayerDefinition

Properties

Property Details
currentVariableId Id of the currently visible variable.
enableDynamicSections Enable dynamic section (only if renderMode = "surfaces").
enableIsosurfaces Enable isosurfaces (only if renderMode = "surfaces").
enableSections Enable static sections.
enableSlices Enable slices.
renderMode Current rendering mode for the voxel layer. Depending on the rendering mode different voxel layer representations can be shown. volume draws the voxel layer as rectangular cuboid (but any slices defined for the voxel layer will change the volume to the area of interest). surfaces will represent the layer as a set of surfaces, for example, dynamic sections can define a plane through the volume or isosurfaces can show a specific value as surface.
Valid values:
  • surfaces
  • volume
shading Defines the shading properties.
variableStyles[] Array of variable styles. Each variable can have one variable style.
volumeStyles[] Array of volume styles. Currently only one volume style is allowed.

renderMode: surfaces Example

A style with surfaces render mode.

{
  "volumeStyles": [
    {
      "verticalExaggeration": 183677.1598089014
    }
  ],
  "currentVariableId": 0,
  "renderMode": "surfaces",
  "enableIsosurfaces": true,
  "enableDynamicSections": true,
  "variableStyles": [
    {
      "variableId": 0,
      "transferFunction": {
        "interpolation": "nearest",
        "stretchRange": [
          327.131,
          2941.46
        ],
        "colorStops": [
          {
            "color": [
              0,
              48,
              246,
              255
            ],
            "position": 0
          },
          {
            "color": [
              0,
              52,
              243,
              255
            ],
            "position": 0.00392
          }
        ]
      }
    }
  ]
}

renderMode: volume Example

A style with volume render mode.

{
  "volumeStyles": [
    {
      "verticalExaggeration": 1
    }
  ],
  "currentVariableId": 0,
  "renderMode": "volume",
  "variableStyles": [
    {
      "variableId": 0,
      "transferFunction": {
        "interpolation": "nearest",
        "stretchRange": [
          327.131,
          2941.46
        ],
        "colorStops": [
          {
            "color": [
              0,
              48,
              246,
              255
            ],
            "position": 0
          },
          {
            "color": [
              0,
              52,
              243,
              255
            ],
            "position": 0.00392
          }
        ]
      }
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.