Class ConvexHull

java.lang.Object
com.solibri.geometry.algorithms.ConvexHull

public final class ConvexHull
extends Object
Provides methods for computing the convex hull of different geometrical shapes.
Since:
9.10.2
  • Method Details

    • of

      public static MPolygon2d of​(Collection<? extends Vector2d> points)
      Returns the convex hull of the given collection of points.
      Parameters:
      points - the points for which the convex hull is computed
      Returns:
      the convex hull of the given collection of points
      Since:
      9.10.2
    • of

      public static MPolygon2d of​(Polygon2d polygon)
      Returns the convex hull of the given polygon.
      Parameters:
      polygon - the polygon for which the convex hull is computed
      Returns:
      the convex hull of the given polygon
      Since:
      9.10.2