Class: Normal

X3D: 3.3
Component: Rendering
Status:
fully implemented

x3dom.nodeTypes. Normal

Normal is a set of 3D surface-normal vectors Normal values are optional perpendicular directions, used per-polygon or per-vertex for lighting and shading. Hint: used by IndexedFaceSet and ElevationGrid.

HTML Encoding and Default Values

<Normal metadata='X3DMetadataObject' vector='[]' ></Normal>

Inheritance


Constructor

Normal(ctx)

Constructor for Normal

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
metadata SFNode X3DMetadataObject X3DGeometricPropertyNode Field to add metadata information
vector MFVec3f [] [-1, 1] set of unit-length normal vectors, corresponding to indexed polygons or vertices.