Java 类com.badlogic.gdx.math.DelaunayTriangulator 实例源码

项目:DunGen    文件:GraphGenerator.java   
private ShortArray generateTrianglesIndices(Array<GameCell> cells) {

        Gdx.app.log("GraphGenerator", "  --> Generating Delaunay Triangulation");

        float[] roomCenterPoints = getRoomCenterPoints(cells);

        return new DelaunayTriangulator().computeTriangles(roomCenterPoints, false);
    }