Package toxi.geom.mesh

Examples of toxi.geom.mesh.WingedEdge


        assertEquals(3, m.edges.size());
        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) {
View Full Code Here


        l2.a = new Vec3D();
        assertFalse(l1.equals(l2));
        l1.b.clear();
        assertTrue(l1.equals(l2));
        HashMap<Line3D, WingedEdge> map = new HashMap<Line3D, WingedEdge>();
        map.put(l1, new WingedEdge(new WEVertex(l1.a, 0),
                new WEVertex(l1.b, 1), null, 0));
        WingedEdge e = map.get(l1);
        assertEquals(l1, e);
    }
View Full Code Here

TOP

Related Classes of toxi.geom.mesh.WingedEdge

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.