Class IndexedGeometryStripArray

    • Constructor Detail

      • IndexedGeometryStripArray

        public IndexedGeometryStripArray​(int vertexCount,
                                         int vertexFormat,
                                         int indexCount,
                                         int[] stripIndexCounts)
        Constructs an empty IndexedGeometryStripArray object with the specified number of vertices, vertex format, number of indices, and array of per-strip index counts.
        Parameters:
        vertexCount - see GeometryArray(int,int) for a description of this parameter.
        vertexFormat - see GeometryArray(int,int) for a description of this parameter.
        indexCount - see IndexedGeometryArray(int,int,int) for a description of this parameter.
        stripIndexCounts - array that specifies the count of the number of indices for each separate strip. The length of this array is the number of separate strips. The sum of the elements in this array defines the total number of valid indexed vertices that are rendered (validIndexCount).
        Throws:
        java.lang.IllegalArgumentException - if validIndexCount > indexCount ;
        See GeometryArray(int,int) for more exceptions that can be thrown
      • IndexedGeometryStripArray

        public IndexedGeometryStripArray​(int vertexCount,
                                         int vertexFormat,
                                         int texCoordSetCount,
                                         int[] texCoordSetMap,
                                         int indexCount,
                                         int[] stripIndexCounts)
        Constructs an empty IndexedGeometryStripArray object with the specified number of vertices, vertex format, number of texture coordinate sets, texture coordinate mapping array, number of indices, and array of per-strip index counts.
        Parameters:
        vertexCount - see GeometryArray(int,int,int,int[]) for a description of this parameter.
        vertexFormat - see GeometryArray(int,int,int,int[]) for a description of this parameter.
        texCoordSetCount - see GeometryArray(int,int,int,int[]) for a description of this parameter.
        texCoordSetMap - see GeometryArray(int,int,int,int[]) for a description of this parameter.
        indexCount - see IndexedGeometryArray(int,int,int,int[],int) for a description of this parameter.
        stripIndexCounts - array that specifies the count of the number of indices for each separate strip. The length of this array is the number of separate strips. The sum of the elements in this array defines the total number of valid indexed vertices that are rendered (validIndexCount).
        Throws:
        java.lang.IllegalArgumentException - if validIndexCount > indexCount ;
        See GeometryArray(int,int,int,int[]) for more exceptions that can be thrown
        Since:
        Java 3D 1.2
      • IndexedGeometryStripArray

        public IndexedGeometryStripArray​(int vertexCount,
                                         int vertexFormat,
                                         int texCoordSetCount,
                                         int[] texCoordSetMap,
                                         int vertexAttrCount,
                                         int[] vertexAttrSizes,
                                         int indexCount,
                                         int[] stripIndexCounts)
        Constructs an empty IndexedGeometryStripArray object with the specified number of vertices, vertex format, number of texture coordinate sets, texture coordinate mapping array, vertex attribute count, vertex attribute sizes array, number of indices, and array of per-strip index counts.
        Parameters:
        vertexCount - see GeometryArray(int,int,int,int[],int,int[]) for a description of this parameter.
        vertexFormat - see GeometryArray(int,int,int,int[],int,int[]) for a description of this parameter.
        texCoordSetMap - see GeometryArray(int,int,int,int[],int,int[]) for a description of this parameter.
        vertexAttrCount - see GeometryArray(int,int,int,int[],int,int[]) for a description of this parameter.
        vertexAttrSizes - see GeometryArray(int,int,int,int[],int,int[]) for a description of this parameter.
        indexCount - see IndexedGeometryArray(int,int,int,int[],int,int[],int) for a description of this parameter.
        stripIndexCounts - array that specifies the count of the number of indices for each separate strip. The length of this array is the number of separate strips. The sum of the elements in this array defines the total number of valid indexed vertices that are rendered (validIndexCount).
        Throws:
        java.lang.IllegalArgumentException - if validIndexCount > indexCount ;
        See GeometryArray(int,int,int,int[],int,int[]) for more exceptions that can be thrown
        Since:
        Java 3D 1.4
    • Method Detail

      • getNumStrips

        public int getNumStrips()
        Get number of strips in the GeometryStripArray
        Returns:
        numStrips number of strips
      • setStripIndexCounts

        public void setStripIndexCounts​(int[] stripIndexCounts)
        Sets the array of strip index counts. The length of this array is the number of separate strips. The elements in this array specify the number of indices for each separate strip. The sum of the elements in this array defines the total number of valid indexed vertices that are rendered (validIndexCount).
        Parameters:
        stripIndexCounts - array that specifies the count of the number of indices for each separate strip.
        Throws:
        java.lang.IllegalArgumentException - if initialIndexIndex + validIndexCount > indexCount
        Since:
        Java 3D 1.3
      • getStripIndexCounts

        public void getStripIndexCounts​(int[] stripIndexCounts)
        Gets a list of indexCounts for each strip. The list is copied into the specified array. The array must be large enough to hold all of the ints.
        Parameters:
        stripIndexCounts - an array that will receive indexCounts
      • setValidIndexCount

        public void setValidIndexCount​(int validIndexCount)
        This method is not supported for indexed geometry strip arrays. The sum of the elements in the strip index counts array defines the valid index count.
        Overrides:
        setValidIndexCount in class IndexedGeometryArray
        Parameters:
        validIndexCount - the new valid index count.
        Throws:
        java.lang.UnsupportedOperationException - this method is not supported
        Since:
        Java 3D 1.3