Package com.sun.j3d.utils.geometry

Examples of com.sun.j3d.utils.geometry.Stripifier


        gi.setStripCounts(new int[] { coords.length/3 });
       
        NormalGenerator ng = new NormalGenerator(0);
        ng.generateNormals(gi);

        Stripifier st = new Stripifier();
        st.stripify(gi);
       
        return gi.getGeometryArray();
    }
View Full Code Here


        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        gi.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(gi);
        gi.recomputeIndices();

        surface.setAppearance(CreateurVoiture.createMaterialAppearance());
        surface.setGeometry(gi.getGeometryArray());
   
View Full Code Here

        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        gi.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(gi);
        gi.recomputeIndices();

        Shape3D part = new Shape3D();
        /*if(wireFrame==true)
                part.setAppearance(createWireFrameAppearance());
View Full Code Here

        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        gi.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(gi);
        gi.recomputeIndices();

        Shape3D part = new Shape3D();
        /*if(wireFrame==true)
                part.setAppearance(createWireFrameAppearance());
View Full Code Here

        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        gi.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(gi);
        gi.recomputeIndices();

        _containedNode = new Shape3D();
        _containedNode.setAppearance(_appearance);
        _containedNode.setGeometry(gi.getGeometryArray());
View Full Code Here

        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        gi.recomputeIndices();

        Stripifier st = new Stripifier();
        st.stripify(gi);
        gi.recomputeIndices();

        _containedNode = new Shape3D();
        _containedNode.setAppearance(_appearance);
        _containedNode.setGeometry(gi.getGeometryArray());
View Full Code Here

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

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

/*      */     }
/*      */
/* 1174 */     NormalGenerator ng = null;
/* 1175 */     if (gen_norms) ng = new NormalGenerator(this.radians);
/*      */
/* 1177 */     Stripifier strippy = null;
/* 1178 */     if ((this.flags & 0x200) != 0) strippy = new Stripifier();
/*      */
/* 1180 */     long t1 = 0L; long t2 = 0L; long t3 = 0L; long t4 = 0L;
/*      */
/* 1183 */     Iterator e = this.triGroups.keySet().iterator();
/* 1184 */     while (e.hasNext())
/*      */     {
/* 1186 */       String curname = (String)e.next();
/* 1187 */       ArrayList triList = (ArrayList)this.triGroups.get(curname);
/*      */
/* 1190 */       if (triList.size() > 0)
/*      */       {
/* 1192 */         GeometryInfo gi = new GeometryInfo(1);
/*      */
/* 1194 */         gi.setCoordinateIndices(groupIndices(this.coordIdxList, triList));
/* 1195 */         gi.setCoordinates(this.coordArray);
/*      */
/* 1197 */         if (do_tex) {
/* 1198 */           gi.setTextureCoordinateParams(1, 2);
/* 1199 */           gi.setTextureCoordinates(0, this.texArray);
/* 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);
/* 1215 */           if ((this.flags & 0x100) != 0) gi.reverse();
/*      */         }
/*      */
/* 1218 */         if ((this.flags & 0x200) != 0) {
/* 1219 */           strippy.stripify(gi);
/*      */         }
/*      */
/* 1228 */         Shape3D shape = new Shape3D();
/*      */
/* 1230 */         shape.setGeometry(gi.getGeometryArray(true, true, false));
View Full Code Here

/*     */           }
/* 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.");
/*     */         }
/*     */         else
/*     */         {
View Full Code Here

TOP

Related Classes of com.sun.j3d.utils.geometry.Stripifier

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.