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

static void javamorph::CMorphOperator::genResultTriangles (  )  [inline, static, private]

Make a weighted average mesh depending on the current ratio.

Definition at line 123 of file CMorphOperator.java.

References javamorph::CTriangle::getPoints(), and merge().

Referenced by run().

        /* For all triangles belonging to both pictures. */
        /* First with first, second with second and so on. */ 
        for(int i = 0; i < CConfig.left_triangles.size(); ++i){
                r = CConfig.left_triangles.get(i),
                s = CConfig.right_triangles.get(i),
                t = new CTriangle(
                    merge(r.getPoints()[0], s.getPoints()[0]),
                    merge(r.getPoints()[1], s.getPoints()[1]),
                    merge(r.getPoints()[2], s.getPoints()[2])
            /* Add merged triangle relating to ratio. */

Generated by  Doxygen 1.6.0   Back to index