Class: ClipPlane

X3D: 3.2
Component: Rendering
Status:
fully implemented

.nodeTypes. ClipPlane

A clip plane is defined as a plane that generates two half-spaces. The effected geometry in the half-space that is defined as being outside the plane is removed from the rendered image as a result of a clipping operation.

HTML Encoding and Default Values

<ClipPlane cappingColor='1.0,1.0,1.0' cappingStrength='0.0' enabled='true' metadata='X3DMetadataObject' on='true' plane='0,1,0,0' ></ClipPlane>

Inheritance


Constructor

ClipPlane(ctx)

Constructor for ClipPlane

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
cappingColor SFColor 0 Defines the color of the capping.
cappingStrength SFFloat 0 Defines the strength of the capping.
enabled SFBool true Defines activation state of the clip plane.
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
on SFBool true Enables/disables this effector (e.g. light)
plane SFVec4f 0,1,0,0 The ClipPlane node specifies a single plane equation that will be used to clip the geometry. The plane field specifies a four-component plane equation that describes the inside and outside half space. The first three components are a normalized vector describing the direction of the plane's normal direction.


Properties

Access Name Type Inheritance Description
count Static class ID counter (needed for caching)