コード例 #1
0
    public CSGPolygon(List <CSGVertex> vertices, CSGShared shared)
    {
        this.vertices = vertices;

        this.shared = shared;

        this.plane = CSGPlane.fromPoints(vertices[0].pos, vertices[1].pos, vertices[2].pos);
    }
コード例 #2
0
    public CSGPolygon(CSGVertex[] verticesArray, CSGShared shared)
    {
        this.vertices = new List <CSGVertex>(verticesArray);

        this.shared = shared;

        this.plane = CSGPlane.fromPoints(vertices[0].pos, vertices[1].pos, vertices[2].pos);
    }