Package toxi.geom.mesh

Examples of toxi.geom.mesh.WETriangleMesh


     *
     * @see junit.framework.TestCase#setUp()
     */
    @Override
    protected void setUp() throws Exception {
        m = new WETriangleMesh("plane", 4, 2);
        m.addFace(new Vec3D(), new Vec3D(100, 0, 0), new Vec3D(100, 100, 0));
        m.addFace(new Vec3D(), new Vec3D(100, 100, 0), new Vec3D(0, 100, 0));
        super.setUp();
    }
View Full Code Here


    public static WETriangleMesh build(WETriangleMesh mesh, int res,
            FloatRange stroke) {
        VolumetricSpace volume = buildVolume(mesh, res, stroke);
        IsoSurface surface = new HashIsoSurface(volume);
        mesh = (WETriangleMesh) surface.computeSurfaceMesh(new WETriangleMesh(
                "iso", 300000, 900000), 0.2f);
        logger.info("created lattice mesh: " + mesh);
        return mesh;
    }
View Full Code Here

            float isoValue) {
        if (volume == null) {
            volume = buildVolume(mesh);
        }
        if (targetMesh == null) {
            targetMesh = new WETriangleMesh();
        }
        IsoSurface surface = new HashIsoSurface(volume);
        mesh = (WETriangleMesh) surface
                .computeSurfaceMesh(targetMesh, isoValue);
        return mesh;
View Full Code Here

TOP

Related Classes of toxi.geom.mesh.WETriangleMesh

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.