Package javax.media.j3d

Examples of javax.media.j3d.TriangleFanArray


                  }
                }
                initialIndex += stripVertexCount [strip];
              }
            } else if (geometryArray instanceof TriangleFanArray) {
              TriangleFanArray triangleFanArray = (TriangleFanArray)geometryArray;
              for (int initialIndex = 0, triangleIndex = 0, strip = 0; strip < stripVertexCount.length; strip++) {
                for (int i = initialIndex, n = initialIndex + stripVertexCount [strip] - 2;
                     i < n; i++) {
                  triangleIndex = exportTriangle(triangleFanArray, initialIndex, i + 1, i + 2, verticesIndices,
                      triangleIndex, vertices, exportedTriangles);
View Full Code Here


/* 2569 */       TriangleStripArray tsa = new TriangleStripArray(vertexCount, vertexFormat, this.texCoordSetCount, this.texCoordSetMap, this.stripCounts);
/*      */
/* 2572 */       ga = tsa;
/* 2573 */       break;
/*      */     case 3:
/* 2576 */       TriangleFanArray tfa = new TriangleFanArray(vertexCount, vertexFormat, this.texCoordSetCount, this.texCoordSetMap, this.stripCounts);
/*      */
/* 2579 */       ga = tfa;
/*      */     }
/*      */
/* 2583 */     fillIn(ga, byRef, interleaved, nio);
View Full Code Here

/*     */     }
/* 484 */     if ((this.flags & 0x2) != 0) {
/* 485 */       tfFlags |= 32;
/*     */     }
/*     */
/* 489 */     obj = new TriangleFanArray(totalVerts, tfFlags, 1, this.texCoordSetMap, stripCounts);
/*     */
/* 493 */     Point3f[] newpts = new Point3f[totalVerts];
/* 494 */     Vector3f[] newnormals = new Vector3f[totalVerts];
/* 495 */     TexCoord2f[] newtcoords = new TexCoord2f[totalVerts];
/*     */
View Full Code Here

/*     */         }
/*     */         else
/*     */         {
/* 232 */           debugOutputLn(8, "about to create trifanarray with vertexCount, facetSizes.len = " + vertexCount + ", " + shape.facetSizes.length);
/*     */
/* 237 */           object = new TriangleFanArray(vertexCount, vertexFormat, shape.facetSizes);
/*     */
/* 241 */           object.setCoordinates(0, shape.coordsArray);
/* 242 */           object.setNormals(0, shape.normalCoords);
/* 243 */           debugOutputLn(2, "passed in normalCoords, length = " + shape.normalCoords.length);
/*     */         }
View Full Code Here

/* 70 */     return createNode(j3dClass, new Class[] { Integer.TYPE, Integer.TYPE, Integer.TYPE, this.texCoordSetMap.getClass(), this.stripVertexCounts.getClass() }, new Object[] { new Integer(this.vertexCount), new Integer(this.vertexFormat), new Integer(this.texCoordSetCount), this.texCoordSetMap, this.stripVertexCounts });
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode()
/*    */   {
/* 85 */     return new TriangleFanArray(this.vertexCount, this.vertexFormat, this.texCoordSetCount, this.texCoordSetMap, this.stripVertexCounts);
/*    */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.TriangleFanArray

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.