Karana.Scene.convexify

Karana.Scene.convexify#

Helpers to convexify meshes.

Functions#

convexify(→ Karana.Scene.SceneFileObjectSpec)

Convexify a mesh file.

Module Contents#

Karana.Scene.convexify.convexify(infile: str | pathlib.Path | Karana.Scene.SceneFileObjectSpec | Karana.Scene.SceneFileObject, outfile: str | pathlib.Path, coacd_args: collections.abc.Mapping[str, Any] | None = None, verbose: bool = False) Karana.Scene.SceneFileObjectSpec[source]#

Convexify a mesh file.

Parameters:
  • infile (str | Path | ks.SceneFileObjectSpec | ks.SceneFileObject) – The original file to convert from

  • outfile (str | Path) – The destination to write the convexified hulls to

  • coacd_args (Mapping[str, Any] | None) – If given, extra kwargs to pass to coacd

  • verbose (bool) – Enables verbose output

Returns:

A SceneFileObjectSpec pointing to the created file

Return type:

ks.SceneFileObjectSpec