Package toxi.volume

Examples of toxi.volume.HashIsoSurface


        volume.closeSides();
        long t0 = System.nanoTime();
        // store in IsoSurface and compute surface mesh for the given threshold
        // value
        mesh = new TriangleMesh("iso", 4000000, 12000000);
        surface = new HashIsoSurface(volume, 0.33f);
        // surface.reset();
        surface.computeSurfaceMesh(mesh, ISO_THRESHOLD);
        float timeTaken = (System.nanoTime() - t0) * 1e-6f;
        println(timeTaken + "ms to compute " + mesh.getNumFaces() + " faces");
        mesh.saveAsSTL(sketchPath("noise.stl"));
View Full Code Here

TOP

Related Classes of toxi.volume.HashIsoSurface

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.