polytopax.core.ConvexHull.from_points

classmethod ConvexHull.from_points(points: Array, algorithm: str = 'approximate', **kwargs) ConvexHull[source]

Create ConvexHull from point cloud.

Parameters:
  • points – Input point cloud with shape (n_points, dim)

  • algorithm – Hull computation algorithm (“approximate”)

  • **kwargs – Algorithm-specific parameters

Returns:

ConvexHull instance

Example

>>> points = jnp.random.normal(jax.random.PRNGKey(0), (50, 3))
>>> hull = ConvexHull.from_points(points, n_directions=100)