Interface Tangent
- All Superinterfaces:
X3DGeometricPropertyNode, X3DNode, X3DTangentNode
- All Known Implementing Classes:
Tangent
Tangent defines a set of 3D surface-normal vectors that apply either to a sibling Coordinate|CoordinateDouble node, or else to a parent ElevationGrid node.
Tangent node tooltip: (X3D version 4.1 draft) [X3DTangentNode] Tangent defines a set of 3D surface-normal vectors that apply either to a sibling Coordinate|CoordinateDouble node, or else to a parent ElevationGrid node. Tangent values are perpendicular directions that are used per-polygon or per-vertex when computing lighting and shading.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Tangent node tooltip: (X3D version 4.1 draft) [X3DTangentNode] Tangent defines a set of 3D surface-normal vectors that apply either to a sibling Coordinate|CoordinateDouble node, or else to a parent ElevationGrid node. Tangent values are perpendicular directions that are used per-polygon or per-vertex when computing lighting and shading.
- Hint: normal vectors perpendicular to 3D surface https://en.wikipedia.org/wiki/Normal_(geometry)
- Hint: tangent plane https://en.wikipedia.org/wiki/Tangent
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionProvide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.float[]Provide array of 4-tuple float results within allowed range of [-1,1] from inputOutput MFVec4f field named vector.setMetadata(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setVector(float[] newValue) Accessor method to assign 4-tuple float array to inputOutput MFVec4f field named vector.
-
Method Details
-
getMetadata
X3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
getMetadatain interfaceX3DGeometricPropertyNode- Specified by:
getMetadatain interfaceX3DNode- Specified by:
getMetadatain interfaceX3DTangentNode- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
setMetadatain interfaceX3DGeometricPropertyNode- Specified by:
setMetadatain interfaceX3DNode- Specified by:
setMetadatain interfaceX3DTangentNode- Parameters:
newValue- is new value for the metadata field.- Returns:
Tangent- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getVector
float[] getVector()Provide array of 4-tuple float results within allowed range of [-1,1] from inputOutput MFVec4f field named vector.
Tooltip: set of x-y-z-w orthogonal vector values for a surface, applied either per-vertex or per-face to a mesh. This is an advanced technique for surface shading.- Hint: values for w are handedness of the tangent base, either +1 or -1. All vertexes of the same triangle must have the same w value for their tangent vectors.
- Warning: unit length means a magnitude of 1.0, so x-y-z normal values of (0,0,0) are invalid.
- Returns:
- value of vector field
-
setVector
Accessor method to assign 4-tuple float array to inputOutput MFVec4f field named vector.
Tooltip: set of x-y-z-w orthogonal vector values for a surface, applied either per-vertex or per-face to a mesh. This is an advanced technique for surface shading.- Hint: values for w are handedness of the tangent base, either +1 or -1. All vertexes of the same triangle must have the same w value for their tangent vectors.
- Warning: unit length means a magnitude of 1.0, so x-y-z normal values of (0,0,0) are invalid.
- Parameters:
newValue- is new value for the vector field.- Returns:
Tangent- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-