Class: SilhouetteEnhancementVolumeStyle

X3DOM
Component: VolumeRendering

.nodeTypes. SilhouetteEnhancementVolumeStyle

The SilhouetteEnhancementVolumeStyle node specifies that silhouettes of the assocciated volume data are going to be enhanced. Voxels opacity are modified based on their normals orientation relative to the view direction. When the normal orientation is perpendicular towards the view direction, voxels are darkened, whereas when it is parallel towards the view direction, the opacity is not enhanced.

HTML Encoding and Default Values

<SilhouetteEnhancementVolumeStyle enabled='true' metadata='X3DMetadataObject' silhouetteBoundaryOpacity='0' silhouetteRetainedOpacity='1' silhouetteSharpness='0.5' surfaceNormals='x3dom.nodeTypes.Texture' ></SilhouetteEnhancementVolumeStyle>

Inheritance


Constructor

SilhouetteEnhancementVolumeStyle(ctx)

Constructor for SilhouetteEnhancementVolumeStyle

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
enabled SFBool true X3DVolumeRenderStyleNode Specifies whether the render style is enabled or disabled.
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
silhouetteBoundaryOpacity SFFloat 0 The silhouetteBoundaryOpacity field is a factor to specify the amount of silhouette enhancement to use.
silhouetteRetainedOpacity SFFloat 1 The silhouetteRetainedOpacity field is a factor to specify the amount of original opacity to retain.
silhouetteSharpness SFFloat 0.5 The silhouetteSharpness field is an exponent factor to specify the silhouette sharpness.
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.