Package javax.media.j3d

Examples of javax.media.j3d.GeometryStripArray


            writeQuadrilateral(quadArray, i, i + 1, i + 2, i + 3,
                vertexIndexSubstitutes, normalIndexSubstitutes, oppositeSideNormalIndexSubstitutes,  
                normalsDefined, textureCoordinatesIndexSubstitutes, textureCoordinatesGenerated, cullFace);
          }
        } else if (geometryArray instanceof GeometryStripArray) {
          GeometryStripArray geometryStripArray = (GeometryStripArray)geometryArray;
          int [] stripVertexCounts = new int [geometryStripArray.getNumStrips()];
          geometryStripArray.getStripVertexCounts(stripVertexCounts);
          int initialIndex = 0;
         
          if (geometryStripArray instanceof LineStripArray) {
            for (int strip = 0; strip < stripVertexCounts.length; strip++) {
              for (int i = initialIndex, n = initialIndex + stripVertexCounts [strip] - 1; i < n; i++) {
View Full Code Here


          for (int i = 0, quadrilateralIndex = 0; i < vertexCount; i += 4) {
            addQuadrilateralToPath(quadArray, i, i + 1, i + 2, i + 3, vertices,
                geometryPath, quadrilateralIndex++, nodeArea);
          }
        } else if (geometryArray instanceof GeometryStripArray) {
          GeometryStripArray geometryStripArray = (GeometryStripArray)geometryArray;
          int [] stripVertexCounts = new int [geometryStripArray.getNumStrips()];
          geometryStripArray.getStripVertexCounts(stripVertexCounts);
          geometryPath = new GeneralPath(GeneralPath.WIND_NON_ZERO, 1000);
          int initialIndex = 0;
         
          if (geometryStripArray instanceof TriangleStripArray) {
            for (int strip = 0, triangleIndex = 0; strip < stripVertexCounts.length; strip++) {
View Full Code Here

/* 130 */     int vertexFormat = geomArray.getVertexFormat();
/* 131 */     int texSets = geomArray.getTexCoordSetCount();
/*     */     int valid;
/* 135 */     if ((geomArray instanceof GeometryStripArray))
/*     */     {
/* 137 */       GeometryStripArray gsa = (GeometryStripArray)geomArray;
/* 138 */       int[] strips = new int[gsa.getNumStrips()];
/* 139 */       gsa.getStripVertexCounts(strips);
/* 140 */       int valid = 0;
/* 141 */       for (int i = 0; i < strips.length; i++)
/* 142 */         valid += strips[i];
/*     */     }
/*     */     else
View Full Code Here

/* 1945 */         stripCounts = new int[stripCount];
/* 1946 */         igsa.getStripIndexCounts(stripCounts);
/*      */       }
/*      */       else
/*      */       {
/* 1950 */         GeometryStripArray gsa = (GeometryStripArray)ga;
/*      */
/* 1952 */         stripCount = gsa.getNumStrips();
/* 1953 */         stripCounts = new int[stripCount];
/* 1954 */         gsa.getStripVertexCounts(stripCounts);
/*      */       }
/*      */
/*      */     }
/*      */
/* 1959 */     int v = firstVertex;
View Full Code Here

TOP

Related Classes of javax.media.j3d.GeometryStripArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.