Class PoSFMesh

    • Method Detail

      • addValuesSet

        public void addValuesSet​(int index,
                                 float[] val)
        Calls addValuesSet(index, val, "").
      • addStringsSet

        public void addStringsSet​(int index,
                                  java.lang.String[] val)
        Calls addStringsSet(index, val, "").
      • addValuesSet

        public void addValuesSet​(int index,
                                 float[] val,
                                 PoMeshProperty.DataBindings binding)
        Calls addValuesSet(index, val, binding, "").
      • addVecsSet

        public void addVecsSet​(int index,
                               SbVec3f[] val)
        Calls addVecsSet(index, val, "").
      • addValuesSet

        public void addValuesSet​(int index,
                                 float[] val,
                                 java.lang.String setName)
        Convenience method that adds a set of scalar values to the internal PbMesh object.

        NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoSFMesh.
      • addVecsSet

        public void addVecsSet​(int index,
                               SbVec3f[] val,
                               java.lang.String setName)
        Convenience methods that adds a set of vector values to the internal PbMesh object.
      • addValuesSet

        public void addValuesSet​(int index,
                                 float[] val,
                                 PoMeshProperty.DataBindings binding,
                                 java.lang.String setName)
        Adds a set of scalar values that can be located either at nodes or at cells.

        Parameters:
        index - the index of the new set added.

        val - the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument.

        binding - specifies the location of the values.

        setName - string associated with this set of values.

        PbMesh.addValuesSet().

        NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of PoSFMesh.
      • addStringsSet

        public void addStringsSet​(int index,
                                  java.lang.String[] val,
                                  java.lang.String setName)
        Convenience methods that adds a set of strings values to the internal PbMesh object.