Package toxi.geom.mesh.subdiv

Examples of toxi.geom.mesh.subdiv.MidpointSubdivision


        assertEquals(3, m.vertices.size());
    }

    public void testSplitEdge() {
        WingedEdge e = ((WEVertex) m.vertices.get(new Vec3D())).edges.get(1);
        m.splitEdge(e, new MidpointSubdivision());
        assertEquals(4, m.faces.size());
        assertEquals(8, m.edges.size());
        m.computeVertexNormals();
        for (Face f : m.faces) {
            System.out.println(Triangle3D.isClockwiseInXY(f.a, f.b, f.c) + " "
View Full Code Here


    public void subdivide() {
        subdivide(0);
    }

    public void subdivide(float minLength) {
        subdivide(new MidpointSubdivision(), minLength);
    }
View Full Code Here

TOP

Related Classes of toxi.geom.mesh.subdiv.MidpointSubdivision

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.