Class: CartoonVolumeStyle

X3DOM
Component: VolumeRendering

x3dom.nodeTypes. CartoonVolumeStyle

The CartoonVolumeStyle node specifies that the associated volume data shall be rendered with a cartoon style non-photorealistic rendering. The cartoon styles uses two colors the rendering will depend on the local surface normals and the view direction.

HTML Encoding and Default Values

<CartoonVolumeStyle colorSteps='4' enabled='true' metadata='X3DMetadataObject' orthogonalColor='1,1,1' parallelColor='0,0,0' surfaceNormals='x3dom.nodeTypes.Texture' ></CartoonVolumeStyle>

Inheritance


Constructor

CartoonVolumeStyle(ctx)

Constructor for CartoonVolumeStyle

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
colorSteps SFInt32 4 The colorSteps field specifies how many distinct colors are taken from the interpolated colors and used to render the object.
enabled SFBool true X3DComposableVolumeRenderStyleNode Specifies whether the render style is enabled or disabled.
metadata SFNode X3DMetadataObject X3DComposableVolumeRenderStyleNode Field to add metadata information
orthogonalColor SFColor 1,1,1 The orthogonalColor field specifies the color to be used when the surface normal is perpendicular to the view direction.
parallelColor SFColor 0,0,0 The parallelColor field specifies the color to be used when the surface normal is parallel to the view direction.
surfaceNormals SFNode Texture X3DComposableVolumeRenderStyleNode The surfaceNormals field allows to provide the normals of the volume data. It takes an ImageTextureAtlas of the same dimensions of the volume data. If it is not provided, it is computed on the fly.