Interface IndexedFaceSet

All Superinterfaces:
X3DComposedGeometryNode, X3DGeometryNode, X3DNode
All Known Implementing Classes:
IndexedFaceSet

public interface IndexedFaceSet extends X3DComposedGeometryNode
IndexedFaceSet defines polygons using index lists corresponding to vertex coordinates.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes. X3D node tooltip: [X3DComposedGeometryNode] IndexedFaceSet defines polygons using index lists corresponding to vertex coordinates. IndexedFaceSet is a geometry node containing a Coordinate|CoordinateDouble node, and can also contain Color|ColorRGBA, Normal and TextureCoordinate nodes. Hint: Polygon <a href="https://en.wikipedia.org/wiki/Polygon" target="_blank">https://en.wikipedia.org/wiki/Polygon</a> Hint: insert a Shape node before adding geometry or Appearance. Hint: for advanced extensibility, authors can substitute a type-matched ProtoInstance node (with correct containerField value) for contained node content. Warning: rendering characteristics are undefined if polygons are not planar. Warning: avoid self-intersecting polygon line segments, otherwise defined geometry is irregular and rendering results are undefined. *


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 Type
    Method
    Description
    void
    addAttrib(X3DNode[] newValue)
    Add array of child attrib nodes to array of existing nodes (if any).
    Provide array of org.web3d.x3d.sai.Core.X3DNode results (using an array consisting of properly typed nodes or ProtoInstances) from inputOutput MFNode field attrib.
    boolean
    Provide boolean value from initializeOnly SFBool field named ccw.
    Provide org.web3d.x3d.sai.Rendering.X3DColorNode instance (using a properly typed node) using RGB values [0..1] from inputOutput SFNode field color.
    int[]
    Provide array of int results using RGB values [0..1] from initializeOnly MFInt32 field named colorIndex.
    boolean
    Provide boolean value from initializeOnly SFBool field named colorPerVertex.
    boolean
    Provide boolean value from initializeOnly SFBool field named convex.
    Provide org.web3d.x3d.sai.Rendering.X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field coord.
    int[]
    Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named coordIndex.
    float
    Provide float value unit axis, angle (in radians) within allowed range of [0,infinity) from initializeOnly SFFloat field named creaseAngle.
    Provide org.web3d.x3d.sai.EnvironmentalEffects.FogCoordinate instance (using a properly typed node) from inputOutput SFNode field fogCoord.
    Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    Provide org.web3d.x3d.sai.Rendering.X3DNormalNode instance (using a properly typed node) from inputOutput SFNode field normal.
    int[]
    Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named normalIndex.
    boolean
    Provide boolean value from initializeOnly SFBool field named normalPerVertex.
    boolean
    Provide boolean value from initializeOnly SFBool field named solid.
    Provide org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) with acceptable node types limited to X3DSingleTextureCoordinateNode|MultiTextureCoordinate, from inputOutput SFNode field texCoord.
    int[]
    Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named texCoordIndex.
    void
    setAttrib(X3DNode newValue)
    Set single child attrib node, replacing prior array of existing nodes (if any).
    setAttrib(X3DNode[] newValue)
    Accessor method to assign org.web3d.x3d.sai.Core.X3DNode array (using an array consisting of properly typed nodes or ProtoInstances) to inputOutput MFNode field attrib.
    setCcw(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named ccw.
    Accessor method to assign org.web3d.x3d.sai.Rendering.X3DColorNode instance (using a properly typed node) to inputOutput SFNode field color.
    setColorIndex(int[] newValue)
    Accessor method to assign int array to initializeOnly MFInt32 field named colorIndex.
    setColorPerVertex(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named colorPerVertex.
    setConvex(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named convex.
    Accessor method to assign org.web3d.x3d.sai.Rendering.X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field coord.
    setCoordIndex(int[] newValue)
    Accessor method to assign int array to initializeOnly MFInt32 field named coordIndex.
    setCreaseAngle(float newValue)
    Accessor method to assign float value unit axis, angle (in radians) to initializeOnly SFFloat field named creaseAngle.
    Accessor method to assign org.web3d.x3d.sai.EnvironmentalEffects.FogCoordinate instance (using a properly typed node) to inputOutput SFNode field fogCoord.
    Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    Accessor method to assign org.web3d.x3d.sai.Rendering.X3DNormalNode instance (using a properly typed node) to inputOutput SFNode field normal.
    setNormalIndex(int[] newValue)
    Accessor method to assign int array to initializeOnly MFInt32 field named normalIndex.
    setNormalPerVertex(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named normalPerVertex.
    setSolid(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named solid.
    setTexCoord(X3DNode newValue)
    Accessor method to assign org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) to inputOutput SFNode field texCoord.
    setTexCoordIndex(int[] newValue)
    Accessor method to assign int array to initializeOnly MFInt32 field named texCoordIndex.
  • Method Details

    • getAttrib

      X3DNode[] getAttrib()
      Provide array of org.web3d.x3d.sai.Core.X3DNode results (using an array consisting of properly typed nodes or ProtoInstances) from inputOutput MFNode field attrib.

      Tooltip: [X3DVertexAttributeNode] Single contained FloatVertexAttribute node that can specify list of per-vertex attribute information for programmable shaders. Hint: X3D Architecture 32.2.2.4 Per-vertex attributes, <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/shaders.html#Pervertexattributes" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/shaders.html#Pervertexattributes</a> *


      Warning: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DVertexAttributeNode.
      Specified by:
      getAttrib in interface X3DComposedGeometryNode
      Returns:
      value of attrib field
      See Also:
    • setAttrib

      IndexedFaceSet setAttrib(X3DNode[] newValue)
      Accessor method to assign org.web3d.x3d.sai.Core.X3DNode array (using an array consisting of properly typed nodes or ProtoInstances) to inputOutput MFNode field attrib.

      Tooltip: [X3DVertexAttributeNode] Single contained FloatVertexAttribute node that can specify list of per-vertex attribute information for programmable shaders. Hint: X3D Architecture 32.2.2.4 Per-vertex attributes, <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/shaders.html#Pervertexattributes" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/shaders.html#Pervertexattributes</a> *


      Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DVertexAttributeNode.
      Specified by:
      setAttrib in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the attrib field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • addAttrib

      void addAttrib(X3DNode[] newValue)
      Add array of child attrib nodes to array of existing nodes (if any).

      Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DVertexAttributeNode.
      Specified by:
      addAttrib in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value array to be appended the attrib field.
    • setAttrib

      void setAttrib(X3DNode newValue)
      Set single child attrib node, replacing prior array of existing nodes (if any).
      Specified by:
      setAttrib in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new node for the attrib field
    • getCcw

      boolean getCcw()
      Provide boolean value from initializeOnly SFBool field named ccw.

      Tooltip: ccw defines clockwise/counterclockwise ordering of vertex coordinates, which in turn defines front/back orientation of polygon normals according to Right-Hand Rule (RHR). Hint: a good debugging technique for problematic polygons is to try changing the value of ccw, which can reverse solid effects (single-sided backface culling) and normal-vector direction. Warning: consistent and correct ordering of left-handed or right-handed point sequences is important throughout the coord array of point values. Hint: clockwise <a href="https://en.wikipedia.org/wiki/Clockwise" target="_blank">https://en.wikipedia.org/wiki/Clockwise</a> *
      Specified by:
      getCcw in interface X3DComposedGeometryNode
      Returns:
      value of ccw field
    • setCcw

      IndexedFaceSet setCcw(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named ccw.

      Tooltip: ccw defines clockwise/counterclockwise ordering of vertex coordinates, which in turn defines front/back orientation of polygon normals according to Right-Hand Rule (RHR). Hint: a good debugging technique for problematic polygons is to try changing the value of ccw, which can reverse solid effects (single-sided backface culling) and normal-vector direction. Warning: consistent and correct ordering of left-handed or right-handed point sequences is important throughout the coord array of point values. Hint: clockwise <a href="https://en.wikipedia.org/wiki/Clockwise" target="_blank">https://en.wikipedia.org/wiki/Clockwise</a> *
      Specified by:
      setCcw in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the ccw field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getColor

      X3DColorNode getColor()
      Provide org.web3d.x3d.sai.Rendering.X3DColorNode instance (using a properly typed node) using RGB values [0..1] from inputOutput SFNode field color.

      Tooltip: [X3DColorNode] Single contained Color or ColorRGBA node that can specify color values applied to corresponding vertices according to colorIndex and colorPerVertex fields. *
      Specified by:
      getColor in interface X3DComposedGeometryNode
      Returns:
      value of color field
    • setColor

      IndexedFaceSet setColor(X3DColorNode newValue)
      Accessor method to assign org.web3d.x3d.sai.Rendering.X3DColorNode instance (using a properly typed node) to inputOutput SFNode field color.

      Tooltip: [X3DColorNode] Single contained Color or ColorRGBA node that can specify color values applied to corresponding vertices according to colorIndex and colorPerVertex fields. *
      Specified by:
      setColor in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the color field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getColorIndex

      int[] getColorIndex()
      Provide array of int results using RGB values [0..1] from initializeOnly MFInt32 field named colorIndex.

      Tooltip: [-1,+infinity) colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices). Hint: if colorIndex array is not provided, then Color|ColorRGBA values are indexed according to the coordIndex field. Hint: If colorPerVertex='false' then one index is provided for each polygon defined by the coordIndex array. No sentinel -1 values are included. Hint: If colorPerVertex='true' then a matching set of indices is provided, each separated by sentinel -1, that exactly corresponds to individual values in the coordIndex array polygon definitions. Warning: if child Color|ColorRGBA node is not provided, then geometry is rendered using corresponding Appearance and material/texture values. *
      Returns:
      value of colorIndex field
    • setColorIndex

      IndexedFaceSet setColorIndex(int[] newValue)
      Accessor method to assign int array to initializeOnly MFInt32 field named colorIndex.

      Tooltip: [-1,+infinity) colorIndex values define the order in which Color|ColorRGBA values are applied to polygons (or vertices). Hint: if colorIndex array is not provided, then Color|ColorRGBA values are indexed according to the coordIndex field. Hint: If colorPerVertex='false' then one index is provided for each polygon defined by the coordIndex array. No sentinel -1 values are included. Hint: If colorPerVertex='true' then a matching set of indices is provided, each separated by sentinel -1, that exactly corresponds to individual values in the coordIndex array polygon definitions. Warning: if child Color|ColorRGBA node is not provided, then geometry is rendered using corresponding Appearance and material/texture values. *
      Parameters:
      newValue - is new value for the colorIndex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getColorPerVertex

      boolean getColorPerVertex()
      Provide boolean value from initializeOnly SFBool field named colorPerVertex.

      Tooltip: Whether Color|ColorRGBA values are applied to each point vertex (true) or to each polygon face (false). Warning: if child Color|ColorRGBA node is not provided, then geometry is rendered using corresponding Appearance and material/texture values. Hint: X3D Scene Authoring Hints, Color <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color" target="_blank">https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color</a> *
      Specified by:
      getColorPerVertex in interface X3DComposedGeometryNode
      Returns:
      value of colorPerVertex field
    • setColorPerVertex

      IndexedFaceSet setColorPerVertex(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named colorPerVertex.

      Tooltip: Whether Color|ColorRGBA values are applied to each point vertex (true) or to each polygon face (false). Warning: if child Color|ColorRGBA node is not provided, then geometry is rendered using corresponding Appearance and material/texture values. Hint: X3D Scene Authoring Hints, Color <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color" target="_blank">https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color</a> *
      Specified by:
      setColorPerVertex in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the colorPerVertex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getConvex

      boolean getConvex()
      Provide boolean value from initializeOnly SFBool field named convex.

      Tooltip: The convex field is a hint to renderers whether all polygons in a shape are convex (true), or possibly concave (false). A convex polygon is planar, does not intersect itself, and has all interior angles &lt; 180 degrees. Hint: concave is the opposite of convex. Interchange profile hint: only convex=true IndexedFaceSets have guaranteed support. Warning: concave or inverted geometry may be invisible when using default value convex=true, since some renderers use more-efficient algorithms to perform tessellation that may inadvertently fail on concave geometry. Hint: select convex=false (i.e. concave) and solid=false (i.e. two-sided display) for greatest visibility of geometry. Hint: convex polygon <a href="https://en.wikipedia.org/wiki/Convex_polygon" target="_blank">https://en.wikipedia.org/wiki/Convex_polygon</a> Hint: tessellation <a href="https://en.wikipedia.org/wiki/Tessellation" target="_blank">https://en.wikipedia.org/wiki/Tessellation</a> *
      Returns:
      value of convex field
    • setConvex

      IndexedFaceSet setConvex(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named convex.

      Tooltip: The convex field is a hint to renderers whether all polygons in a shape are convex (true), or possibly concave (false). A convex polygon is planar, does not intersect itself, and has all interior angles &lt; 180 degrees. Hint: concave is the opposite of convex. Interchange profile hint: only convex=true IndexedFaceSets have guaranteed support. Warning: concave or inverted geometry may be invisible when using default value convex=true, since some renderers use more-efficient algorithms to perform tessellation that may inadvertently fail on concave geometry. Hint: select convex=false (i.e. concave) and solid=false (i.e. two-sided display) for greatest visibility of geometry. Hint: convex polygon <a href="https://en.wikipedia.org/wiki/Convex_polygon" target="_blank">https://en.wikipedia.org/wiki/Convex_polygon</a> Hint: tessellation <a href="https://en.wikipedia.org/wiki/Tessellation" target="_blank">https://en.wikipedia.org/wiki/Tessellation</a> *
      Parameters:
      newValue - is new value for the convex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getCoord

      X3DCoordinateNode getCoord()
      Provide org.web3d.x3d.sai.Rendering.X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field coord.

      Tooltip: [X3DCoordinateNode] Single contained Coordinate or CoordinateDouble node that can specify a list of vertex values. *
      Specified by:
      getCoord in interface X3DComposedGeometryNode
      Returns:
      value of coord field
    • setCoord

      IndexedFaceSet setCoord(X3DCoordinateNode newValue)
      Accessor method to assign org.web3d.x3d.sai.Rendering.X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field coord.

      Tooltip: [X3DCoordinateNode] Single contained Coordinate or CoordinateDouble node that can specify a list of vertex values. *
      Specified by:
      setCoord in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the coord field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getCoordIndex

      int[] getCoordIndex()
      Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named coordIndex.

      Tooltip: [-1,+infinity) coordIndex indices provide the order in which coordinates are applied to construct each polygon face. Order starts at index 0, commas are optional between sets. Hint: sentinel value -1 is used to separate indices for each successive polygon. Warning: coordIndex is required in order to connect contained coordinate point values. *
      Returns:
      value of coordIndex field
    • setCoordIndex

      IndexedFaceSet setCoordIndex(int[] newValue)
      Accessor method to assign int array to initializeOnly MFInt32 field named coordIndex.

      Tooltip: [-1,+infinity) coordIndex indices provide the order in which coordinates are applied to construct each polygon face. Order starts at index 0, commas are optional between sets. Hint: sentinel value -1 is used to separate indices for each successive polygon. Warning: coordIndex is required in order to connect contained coordinate point values. *
      Parameters:
      newValue - is new value for the coordIndex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getCreaseAngle

      float getCreaseAngle()
      Provide float value unit axis, angle (in radians) within allowed range of [0,infinity) from initializeOnly SFFloat field named creaseAngle.

      Tooltip: [0,+infinity) creaseAngle defines angle (in radians) for determining whether adjacent polygons are drawn with sharp edges or smooth shading. If angle between normals of two adjacent polygons is less than creaseAngle, smooth shading is rendered across the shared line segment. Interchange profile hint: only 0 and pi radians supported. Hint: creaseAngle=0 means render all edges sharply, creaseAngle=3.14159 means render all edges smoothly. Hint: radian units for angular measure <a href="https://en.wikipedia.org/wiki/Radian" target="_blank">https://en.wikipedia.org/wiki/Radian</a> *
      Returns:
      value of creaseAngle field
    • setCreaseAngle

      IndexedFaceSet setCreaseAngle(float newValue)
      Accessor method to assign float value unit axis, angle (in radians) to initializeOnly SFFloat field named creaseAngle.

      Tooltip: [0,+infinity) creaseAngle defines angle (in radians) for determining whether adjacent polygons are drawn with sharp edges or smooth shading. If angle between normals of two adjacent polygons is less than creaseAngle, smooth shading is rendered across the shared line segment. Interchange profile hint: only 0 and pi radians supported. Hint: creaseAngle=0 means render all edges sharply, creaseAngle=3.14159 means render all edges smoothly. Hint: radian units for angular measure <a href="https://en.wikipedia.org/wiki/Radian" target="_blank">https://en.wikipedia.org/wiki/Radian</a> *
      Parameters:
      newValue - is new value for the creaseAngle field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getFogCoord

      FogCoordinate getFogCoord()
      Provide org.web3d.x3d.sai.EnvironmentalEffects.FogCoordinate instance (using a properly typed node) from inputOutput SFNode field fogCoord.

      Tooltip: [FogCoordinate] Single contained FogCoordinate node that can specify depth parameters for fog in corresponding geometry. *
      Specified by:
      getFogCoord in interface X3DComposedGeometryNode
      Returns:
      value of fogCoord field
    • setFogCoord

      IndexedFaceSet setFogCoord(FogCoordinate newValue)
      Accessor method to assign org.web3d.x3d.sai.EnvironmentalEffects.FogCoordinate instance (using a properly typed node) to inputOutput SFNode field fogCoord.

      Tooltip: [FogCoordinate] Single contained FogCoordinate node that can specify depth parameters for fog in corresponding geometry. *
      Specified by:
      setFogCoord in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the fogCoord field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • 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 <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/core.html#Metadata" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/core.html#Metadata</a> *
      Specified by:
      getMetadata in interface X3DComposedGeometryNode
      Specified by:
      getMetadata in interface X3DGeometryNode
      Specified by:
      getMetadata in interface X3DNode
      Returns:
      value of metadata field
      See Also:
    • setMetadata

      IndexedFaceSet setMetadata(X3DMetadataObject newValue)
      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 <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/core.html#Metadata" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof//Part01/components/core.html#Metadata</a> *
      Specified by:
      setMetadata in interface X3DComposedGeometryNode
      Specified by:
      setMetadata in interface X3DGeometryNode
      Specified by:
      setMetadata in interface X3DNode
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also:
    • getNormal

      X3DNormalNode getNormal()
      Provide org.web3d.x3d.sai.Rendering.X3DNormalNode instance (using a properly typed node) from inputOutput SFNode field normal.

      Tooltip: [X3DNormalNode] Single contained Normal node that can specify perpendicular vectors for corresponding vertices to support rendering computations, applied according to the normalPerVertex field. Hint: useful for special effects. Normal vector computation by 3D graphics hardware is quite fast so adding normals to a scene is typically unnecessary. Warning: normal vectors increase file size, typically doubling geometry definitions. *
      Specified by:
      getNormal in interface X3DComposedGeometryNode
      Returns:
      value of normal field
    • setNormal

      IndexedFaceSet setNormal(X3DNormalNode newValue)
      Accessor method to assign org.web3d.x3d.sai.Rendering.X3DNormalNode instance (using a properly typed node) to inputOutput SFNode field normal.

      Tooltip: [X3DNormalNode] Single contained Normal node that can specify perpendicular vectors for corresponding vertices to support rendering computations, applied according to the normalPerVertex field. Hint: useful for special effects. Normal vector computation by 3D graphics hardware is quite fast so adding normals to a scene is typically unnecessary. Warning: normal vectors increase file size, typically doubling geometry definitions. *
      Specified by:
      setNormal in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the normal field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getNormalIndex

      int[] getNormalIndex()
      Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named normalIndex.

      Tooltip: [-1,+infinity) normalIndex values define the order in which normal vectors are applied to polygons (or vertices). Warning: if normalIndex array is not provided, then Normal values are indexed according to the coordIndex field. Hint: If normalPerVertex='false' then one index is provided for each polygon defined by the coordIndex array. No sentinel -1 values are included. Hint: If normalPerVertex='true' then a matching set of indices is provided, each separated by sentinel -1, that exactly corresponds to individual values in the coordIndex array polygon definitions. Hint: if no child Normal node is provided, the X3D browser shall automatically generate normals, using creaseAngle to determine smoothed shading across shared vertices. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of normalIndex field
    • setNormalIndex

      IndexedFaceSet setNormalIndex(int[] newValue)
      Accessor method to assign int array to initializeOnly MFInt32 field named normalIndex.

      Tooltip: [-1,+infinity) normalIndex values define the order in which normal vectors are applied to polygons (or vertices). Warning: if normalIndex array is not provided, then Normal values are indexed according to the coordIndex field. Hint: If normalPerVertex='false' then one index is provided for each polygon defined by the coordIndex array. No sentinel -1 values are included. Hint: If normalPerVertex='true' then a matching set of indices is provided, each separated by sentinel -1, that exactly corresponds to individual values in the coordIndex array polygon definitions. Hint: if no child Normal node is provided, the X3D browser shall automatically generate normals, using creaseAngle to determine smoothed shading across shared vertices. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the normalIndex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getNormalPerVertex

      boolean getNormalPerVertex()
      Provide boolean value from initializeOnly SFBool field named normalPerVertex.

      Tooltip: Whether Normal node vector values are applied to each point vertex (true) or to each polygon face (false). Hint: if no child Normal node is provided, the X3D browser shall automatically generate normals, using creaseAngle to determine smoothed shading across shared vertices. *
      Specified by:
      getNormalPerVertex in interface X3DComposedGeometryNode
      Returns:
      value of normalPerVertex field
    • setNormalPerVertex

      IndexedFaceSet setNormalPerVertex(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named normalPerVertex.

      Tooltip: Whether Normal node vector values are applied to each point vertex (true) or to each polygon face (false). Hint: if no child Normal node is provided, the X3D browser shall automatically generate normals, using creaseAngle to determine smoothed shading across shared vertices. *
      Specified by:
      setNormalPerVertex in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the normalPerVertex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getSolid

      boolean getSolid()
      Provide boolean value from initializeOnly SFBool field named solid.

      Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off). Hint: mnemonic "this geometry is solid like a brick" (you don't render the inside of a brick). Warning: default value true can completely hide geometry if viewed from wrong side! Hint: if in doubt, use solid='false' for maximum visibility. Hint: (X3D version 4.0 draft) accessType relaxed to inputOutput in order to support animation and visualization. *
      Specified by:
      getSolid in interface X3DComposedGeometryNode
      Returns:
      value of solid field
    • setSolid

      IndexedFaceSet setSolid(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named solid.

      Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off). Hint: mnemonic "this geometry is solid like a brick" (you don't render the inside of a brick). Warning: default value true can completely hide geometry if viewed from wrong side! Hint: if in doubt, use solid='false' for maximum visibility. Hint: (X3D version 4.0 draft) accessType relaxed to inputOutput in order to support animation and visualization. *
      Specified by:
      setSolid in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the solid field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getTexCoord

      X3DNode getTexCoord()
      Provide org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) with acceptable node types limited to X3DSingleTextureCoordinateNode|MultiTextureCoordinate, from inputOutput SFNode field texCoord.

      Tooltip: [X3DTextureCoordinateNode] Single contained TextureCoordinate, TextureCoordinateGenerator or MultiTextureCoordinate node that can specify coordinates for texture mapping onto corresponding geometry. *
      Specified by:
      getTexCoord in interface X3DComposedGeometryNode
      Returns:
      value of texCoord field
    • setTexCoord

      IndexedFaceSet setTexCoord(X3DNode newValue)
      Accessor method to assign org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) to inputOutput SFNode field texCoord.

      Tooltip: [X3DTextureCoordinateNode] Single contained TextureCoordinate, TextureCoordinateGenerator or MultiTextureCoordinate node that can specify coordinates for texture mapping onto corresponding geometry. *
      Specified by:
      setTexCoord in interface X3DComposedGeometryNode
      Parameters:
      newValue - is new value for the texCoord field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getTexCoordIndex

      int[] getTexCoordIndex()
      Provide array of int results within allowed range of [-1,infinity) from initializeOnly MFInt32 field named texCoordIndex.

      Tooltip: [-1,+infinity) List of texture-coordinate indices mapping attached texture to corresponding coordinates. Hint: if texCoordIndex array is not provided, then TextureCoordinate values are indexed according to the coordIndex field. Hint: use a tool!. *
      Returns:
      value of texCoordIndex field
    • setTexCoordIndex

      IndexedFaceSet setTexCoordIndex(int[] newValue)
      Accessor method to assign int array to initializeOnly MFInt32 field named texCoordIndex.

      Tooltip: [-1,+infinity) List of texture-coordinate indices mapping attached texture to corresponding coordinates. Hint: if texCoordIndex array is not provided, then TextureCoordinate values are indexed according to the coordIndex field. Hint: use a tool!. *
      Parameters:
      newValue - is new value for the texCoordIndex field.
      Returns:
      IndexedFaceSet - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).