Examples of stripify()


Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

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

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

        Shape3D shape3D = new Shape3D();
        shape3D.setAppearance(createMaterialAppearance(color));
        shape3D.setGeometry(gi.getGeometryArray());
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        sc[0]=values.length/3;
        gi.setStripCounts(sc);
        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
        Stripifier st = new Stripifier();
        st.stripify(gi);
        GeometryArray result = gi.getGeometryArray();
        return result;
    }

}
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

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

        Stripifier st = new Stripifier();
        st.stripify(gi);
       
        return new Shape3D(gi.getGeometryArray());
    }
   
    private static final Shape3D makeECMBorder(int range) {
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

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

        Stripifier st = new Stripifier();
        st.stripify(gi);
       
        return new Shape3D(gi.getGeometryArray());
    }
   
    private static final Shape3D makeECMOutline(int range) {
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

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

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

        return gi.getGeometryArray();
    }

    private static final Appearance makeAppearance(Texture2D tex) {
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        gi.setStripCounts(arrowStrips);
        gi.setContourCounts(contours);
        gi.setNormals(normals);

        Stripifier st = new Stripifier();
        st.stripify(gi);
       
        return gi.getGeometryArray();
    }

    private static final GeometryArray makeArrowOutline() {
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        gi.setStripCounts(arrowStrips);
        gi.setContourCounts(contours);
        gi.setNormals(normals);

        Stripifier st = new Stripifier();
        st.stripify(gi);
       
        return gi.getGeometryArray();
    }

    static final GeometryArray makeArrowOutline(double length) {
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        gi.setTextureCoordinateParams(1, 2);
        gi.setTextureCoordinates(0, texCoords);

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

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        NormalGenerator ng = new NormalGenerator();
        ng.generateNormals(gi);
       
        Stripifier st = new Stripifier();
        st.stripify(gi);

        geom[0] = gi.getGeometryArray();
       
        // top
        int[] strips = new int[scounts.size()];
View Full Code Here

Examples of com.sun.j3d.utils.geometry.Stripifier.stripify()

        gi.setContourCounts(strips);
        gi.setStripCounts(count);
        gi.setTextureCoordinateParams(1, 2);
        gi.setTextureCoordinates(0, texcoords);

        st.stripify(gi);

        geom[1] = gi.getIndexedGeometryArray(false);

        voff = toff = noff = 0;
        // bottom
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.