HTML Encoding and Default Values⤴
<TextureTransform3D
center='0,0,0'
metadata='X3DMetadataObject'
rotation='0,0,1,0'
scale='1,1,1'
scaleOrientation='0,0,1,0'
translation='0,0,0'
></TextureTransform3D>
Inheritance⤴
- X3DNode(18)
- X3DAppearanceChildNode(9)
- X3DTextureTransformNode(3)
- TextureTransform3D
Constructor⤴
-
TextureTransform3D(ctx)⤴
-
Constructor for TextureTransform3D
Parameters:
Name Type Argument Default Description ctx
Object <optional>
null context object, containing initial settings like namespace The TextureTransform3D node specifies a 3D transformation that is applied to texture coordinates. This node affects the way texture coordinates are applied to the geometric surface. The transformation consists of (in order): a translation; a rotation about the centre point; and a non-uniform scale about the centre point.
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 |
---|---|---|---|---|---|---|
center | SFVec3f | 0,0,0 | The center field specifies a translation offset in texture coordinate space about which the rotation and scale fields are applied. | |||
metadata | SFNode | X3DMetadataObject | X3DNode | Field to add metadata information | ||
rotation | SFRotation | 0,0,1,0 | The rotation field specifies a rotation in angle base units of the texture coordinates about the center point after the scale has been applied. A positive rotation value makes the texture coordinates rotate counterclockwise about the centre, thereby rotating the appearance of the texture itself clockwise. | |||
scale | SFVec3f | 1,1,1 | The scale field specifies a scaling factor in S and T of the texture coordinates about the center point. | |||
scaleOrientation | SFRotation | 0,0,1,0 | ||||
translation | SFVec3f | 0,0,0 | The translation field specifies a translation of the texture coordinates. |