Package toxi.geom.mesh

Examples of toxi.geom.mesh.STLReader


    public void testSTLImport() {
        double total = 0;
        int numIter = 100;
        for (int i = 0; i < numIter; i++) {
            long t = System.nanoTime();
            mesh = (TriangleMesh) new STLReader().loadBinary("test/test.stl",
                    STLReader.TRIANGLEMESH);
            total += (System.nanoTime() - t);
        }
        System.out.println("avg. mesh construction time: " + total * 1e-6
                / numIter);
View Full Code Here

TOP

Related Classes of toxi.geom.mesh.STLReader

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.