Package javax.media.j3d

Examples of javax.media.j3d.IndexedGeometryArray


/*      */         }
/*      */       }
/*      */     }
/*      */
/* 2363 */     if (this.coordinateIndices != null) {
/* 2364 */       IndexedGeometryArray iga = null;
/* 2365 */       iga = (IndexedGeometryArray)ga;
/* 2366 */       iga.setCoordinateIndices(0, this.coordinateIndices);
/* 2367 */       if (!this.coordOnly) {
/* 2368 */         if (this.colorIndices != null) iga.setColorIndices(0, this.colorIndices);
/* 2369 */         if (this.normalIndices != null) iga.setNormalIndices(0, this.normalIndices);
/* 2370 */         for (int i = 0; i < this.texCoordSetCount; i++)
/* 2371 */           iga.setTextureCoordinateIndices(i, 0, this.texCoordIndexSets[i]);
/*      */       }
/*      */     }
/*      */   }
View Full Code Here


/* 2723 */       this.texCoordSetCount = 1;
/* 2724 */       this.texCoordSetMap = new int[1];
/* 2725 */       this.texCoordSetMap[0] = 0;
/*      */     }
/*      */
/* 2732 */     IndexedGeometryArray ga = null;
/*      */
/* 2734 */     switch (this.prim) {
/*      */     case 1:
/* 2736 */       IndexedTriangleArray ta = new IndexedTriangleArray(vertexCount, vertexFormat, this.texCoordSetCount, this.texCoordSetMap, this.coordinateIndices.length);
/*      */
View Full Code Here

/* 1044 */     this.stream.add(new NormalQuant(value));
/*      */   }
/*      */
/*      */   private void getIndexArrays(GeometryArray ga, IndexArrays ia)
/*      */   {
/* 1165 */     IndexedGeometryArray iga = (IndexedGeometryArray)ga;
/*      */
/* 1167 */     int initialIndexIndex = iga.getInitialIndexIndex();
/* 1168 */     int indexCount = iga.getValidIndexCount();
/* 1169 */     int vertexFormat = iga.getVertexFormat();
/*      */
/* 1171 */     boolean useCoordIndexOnly = false;
/* 1172 */     if ((vertexFormat & 0x200) != 0)
/*      */     {
/* 1174 */       useCoordIndexOnly = true;
/*      */     }
/*      */
/* 1177 */     ia.positionIndices = new int[indexCount];
/* 1178 */     iga.getCoordinateIndices(initialIndexIndex, ia.positionIndices);
/*      */
/* 1180 */     if (this.vertexNormals) {
/* 1181 */       if (useCoordIndexOnly) {
/* 1182 */         ia.normalIndices = ia.positionIndices;
/*      */       }
/*      */       else {
/* 1185 */         ia.normalIndices = new int[indexCount];
/* 1186 */         iga.getNormalIndices(initialIndexIndex, ia.normalIndices);
/*      */       }
/*      */     }
/* 1189 */     if ((this.vertexColor3) || (this.vertexColor4))
/* 1190 */       if (useCoordIndexOnly) {
/* 1191 */         ia.colorIndices = ia.positionIndices;
/*      */       }
/*      */       else {
/* 1194 */         ia.colorIndices = new int[indexCount];
/* 1195 */         iga.getColorIndices(initialIndexIndex, ia.colorIndices);
/*      */       }
/*      */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.IndexedGeometryArray

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.