# tfg.rendering.volumetric.visual_hull.render

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/volumetric/visual_hull.py#L27-L59) |

Renders the visual hull of a voxel grid, as described in ["Escaping Plato's Cave: 3D Shape From Adversarial Rendering" (Henzler 2019)](https://github.com/henzler/platonicgan).

    tfg.rendering.volumetric.visual_hull.render(
        voxels: type_alias.TensorLike,
        axis: int = 2,
        name: str = 'visual_hull_render'
    ) -> tf.Tensor

<br />

<br />

<br />

| ## Note ||
|---|---|
| In the following, A1 to An are optional batch dimensions. ||

<br />

<br />

<br />

<br />

| ## Args ||
|---|---|
| `voxels` | A tensor of shape `[A1, ..., An, Vx, Vy, Vz, Vd]`, where Vx, Vy, Vz are the dimensions of the voxel grid and Vd the dimension of the information stored in each voxel (e.g. 3 for RGB color). |
| `axis` | An index to the projection axis (0 for X, 1 for Y or 2 for Z). |
| `name` | A name for this op. Defaults to "visual_hull_render". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of shape `[A1, ..., An, Vx, Vy, Vd]` representing images of size (Vx,Vy). ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If the shape of the input tensors are not supported. |

<br />