Examples of generateNormals()


Examples of com.sun.j3d.utils.geometry.NormalGenerator.generateNormals()

        Triangulator triangulator = new Triangulator();
        triangulator.triangulate(geometryInfo);
        geometryInfo.recomputeIndices();

        NormalGenerator normalGenerator = new NormalGenerator();
        normalGenerator.generateNormals(geometryInfo);
        geometryInfo.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(geometryInfo);
        geometryInfo.recomputeIndices();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.NormalGenerator.generateNormals()

/*  917 */         GeometryInfo gi = new GeometryInfo(1);
/*      */
/*  919 */         gi.setCoordinateIndices(groupIndices(this.coordIdxList, triList));
/*  920 */         gi.setCoordinates(this.coordArray);
/*      */
/*  922 */         if (curname.equals("0")) ng0.generateNormals(gi); else {
/*  923 */           ng.generateNormals(gi);
/*      */         }
/*      */
/*  926 */         Vector3f[] genNorms = gi.getNormals();
/*  927 */         int[] genNormIndices = gi.getNormalIndices();
View Full Code Here

Examples of com.sun.j3d.utils.geometry.NormalGenerator.generateNormals()

/* 1200 */           gi.setTextureCoordinateIndices(0, groupIndices(this.texIdxList, triList));
/*      */         }
/*      */
/* 1204 */         if (gen_norms) {
/* 1205 */           if ((this.flags & 0x100) != 0) gi.reverse();
/* 1206 */           ng.generateNormals(gi);
/*      */         }
/*      */         else
/*      */         {
/* 1213 */           gi.setNormalIndices(groupIndices(this.normIdxList, triList));
/* 1214 */           gi.setNormals(this.normArray);
View Full Code Here

Examples of com.sun.j3d.utils.geometry.NormalGenerator.generateNormals()

/* 217 */             gi.setTextureCoordinateIndices(0, textureIndices);
/*     */           }
/* 219 */           gi.recomputeIndices();
/* 220 */           NormalGenerator ng = new NormalGenerator(surf.getCreaseAngle());
/*     */
/* 222 */           ng.generateNormals(gi);
/* 223 */           Stripifier st = new Stripifier();
/* 224 */           st.stripify(gi);
/* 225 */           GeometryArray object = gi.getGeometryArray(true, true, false);
/* 226 */           debugOutputLn(8, "done.");
/*     */         }
View Full Code Here

Examples of com.sun.j3d.utils.geometry.NormalGenerator.generateNormals()

/*  395 */         numPoints += outVerts[i].length;
/*  396 */         gi = new GeometryInfo(5);
/*  397 */         gi.setCoordinates(outVerts[i]);
/*  398 */         gi.setStripCounts(islandCounts[i]);
/*  399 */         gi.setContourCounts(contourCounts);
/*  400 */         ng.generateNormals(gi);
/*      */
/*  402 */         GeometryArray ga = gi.getGeometryArray(false, false, false);
/*  403 */         vertOffset += ga.getVertexCount();
/*      */
/*  405 */         triangData.add(ga);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.