Interface CADFace

    • Method Summary

      Modifier and Type Method Description
      float[] getBboxCenter()
      Provide array of 3-tuple float results from initializeOnly SFVec3f field named bboxCenter.
      float[] getBboxSize()
      Provide array of 3-tuple float results within allowed range of [0,infinity), or default value [-1 -1 -1], from initializeOnly SFVec3f field named bboxSize.
      X3DMetadataObject getMetadata()
      Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
      java.lang.String getName()
      Provide String value from inputOutput SFString field named name.
      X3DNode getShape()
      Provide X3DNode instance (using a properly typed node) with acceptable node types limited to Shape|LOD|Transform, from inputOutput SFNode field shape.
      CADFace setBboxCenter​(float[] newValue)
      Accessor method to assign 3-tuple float array to initializeOnly SFVec3f field named bboxCenter.
      CADFace setBboxSize​(float[] newValue)
      Accessor method to assign 3-tuple float array to initializeOnly SFVec3f field named bboxSize.
      CADFace setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
      CADFace setName​(java.lang.String newValue)
      Accessor method to assign String value to inputOutput SFString field named name.
      CADFace setShape​(X3DNode newValue)
      Accessor method to assign X3DNode instance (using a properly typed node) to inputOutput SFNode field shape. // newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1 boolean isNodeTypeAllowed = (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Shape.ShapeObject) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Navigation.LODObject) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Grouping.TransformObject); if (!
    • Method Detail

      • getBboxCenter

        float[] getBboxCenter()
        Provide array of 3-tuple float results from initializeOnly SFVec3f field named bboxCenter.

        Tooltip: Bounding box center accompanies bboxSize and provides an optional hint for bounding box position offset from origin of local coordinate system.
        Specified by:
        getBboxCenter in interface X3DBoundedObject
        Returns:
        value of bboxCenter field
      • setBboxCenter

        CADFace setBboxCenter​(float[] newValue)
        Accessor method to assign 3-tuple float array to initializeOnly SFVec3f field named bboxCenter.

        Tooltip: Bounding box center accompanies bboxSize and provides an optional hint for bounding box position offset from origin of local coordinate system.
        Specified by:
        setBboxCenter in interface X3DBoundedObject
        Parameters:
        newValue - is new value for the bboxCenter field.
        Returns:
        CADFace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      • getBboxSize

        float[] getBboxSize()
        Provide array of 3-tuple float results within allowed range of [0,infinity), or default value [-1 -1 -1], from initializeOnly SFVec3f field named bboxSize.

        Tooltip: Bounding box size is usually omitted, and can easily be calculated automatically by an X3D player at scene-loading time with minimal computational cost. Bounding box size can also be defined as an optional authoring hint that suggests an optimization or constraint.
        Specified by:
        getBboxSize in interface X3DBoundedObject
        Returns:
        value of bboxSize field
      • setBboxSize

        CADFace setBboxSize​(float[] newValue)
        Accessor method to assign 3-tuple float array to initializeOnly SFVec3f field named bboxSize.

        Tooltip: Bounding box size is usually omitted, and can easily be calculated automatically by an X3D player at scene-loading time with minimal computational cost. Bounding box size can also be defined as an optional authoring hint that suggests an optimization or constraint.
        Specified by:
        setBboxSize in interface X3DBoundedObject
        Parameters:
        newValue - is new value for the bboxSize field.
        Returns:
        CADFace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      • getShape

        X3DNode getShape()
        Provide X3DNode instance (using a properly typed node) with acceptable node types limited to Shape|LOD|Transform, from inputOutput SFNode field shape.

        Tooltip: [X3DShapeNode|LOD|Transform] Contained Shape for this CADPart.
        • Warning: if LOD or Transform are used, only zero or one Shape child is allowed to be active at one time.
        Returns:
        value of shape field
      • setShape

        CADFace setShape​(X3DNode newValue)
        Accessor method to assign X3DNode instance (using a properly typed node) to inputOutput SFNode field shape. // newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1 boolean isNodeTypeAllowed = (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Shape.ShapeObject) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Navigation.LODObject) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Grouping.TransformObject); if (!isNodeTypeAllowed) { throw new org.web3d.x3d.sai.InvalidFieldValueException("X3DNode newValue is not instanceof " + "acceptableNodeTypes Shape|LOD|Transform; newValue=" + newValue); }

        Tooltip: [X3DShapeNode|LOD|Transform] Contained Shape for this CADPart.
        • Warning: if LOD or Transform are used, only zero or one Shape child is allowed to be active at one time.
        Parameters:
        newValue - is new value for the shape field.
        Returns:
        CADFace - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).