Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

static void javamorph::CTriangulation::work (  )  [inline, static, private]

Calculate the triangles.

Definition at line 104 of file CTriangulation.java.

References clear(), findNearest(), findPoint(), p1, p2, points, queue, and used.

Referenced by triangulate().

        if(3 > points.size())return;
        Iterator<Point> it= points.iterator();
        p1 = it.next();
        p2 = findNearest(p1);
        used.add(new CLine(p1, p2));
        queue.add(new Point[]{p1, p2});
        while(0 < queue.size())findPoint();

Generated by  Doxygen 1.6.0   Back to index