|
Download submodules/pytorch3d/docs/notes/cubify.md from vegagoto123/UIKA: direct link, hf CLI and curl.
- Browser
- Download file 983 Bytes
-
https://huggingface.co/vegagoto123/UIKA/resolve/main/submodules/pytorch3d/docs/notes/cubify.md
- Command line
-
hf download hf://vegagoto123/UIKA/submodules/pytorch3d/docs/notes/cubify.md
-
curl -L -o cubify.md https://huggingface.co/vegagoto123/UIKA/resolve/main/submodules/pytorch3d/docs/notes/cubify.md
983 Bytes
metadata
hide_title: true
sidebar_label: Cubify
Cubify
The cubify operator converts an 3D occupancy grid of shape BxDxHxW, where B is the batch size, into a mesh instantiated as a Meshes data structure of B elements. The operator replaces every occupied voxel (if its occupancy probability is greater than a user defined threshold) with a cuboid of 12 faces and 8 vertices. Shared vertices are merged, and internal faces are removed resulting in a watertight mesh.
The operator provides three alignment modes {topleft, corner, center} which define the span of the mesh vertices with respect to the voxel grid. The alignment modes are described in the figure below for a 2D grid.
