polytopax.convex_hull_surface_area

polytopax.convex_hull_surface_area(vertices: Array, faces: Array | None = None) Array[source]

Compute surface area of convex hull.

Parameters:
  • vertices – Hull vertices with shape (…, n_vertices, dim)

  • faces – Face vertex indices with shape (…, n_faces, vertices_per_face) If None, faces will be computed automatically

Returns:

Surface area (sum of face areas)