Beispiel #1
0
    public Hull(List <Vector3> points)
    {
        //Make a new convex hull
        this.points = ConvexHull.Compute(points, true);

        this.points = MathfEx.smoothPolygon(this.points);
    }
Beispiel #2
0
    public Hull(List <Vector3> pointsA, List <Vector3> pointsB)
    {
        //Union the two together -- not the best approach but its 2am
        List <Vector3> allPoints = pointsA.Union(pointsB).ToList();

        //Compute the hull and save it
        this.points = ConvexHull.Compute(allPoints, true);

        this.points = MathfEx.smoothPolygon(this.points);
    }