About this Block
What it does: The Smoothen Voxel Grid block uses a variety of smoothing algorithms, specified in the Filter input, to smooth out sharp features in a Voxel Grid. Common uses:- Smoothen out sharp features in a Voxel Grid.
- The iterations input contributes to the overall smoothness and computation time, and controls the number of times that the smoothing algorithm is applied to the input Voxel Grid.
- The Width input refers to the range neighboring Voxels that contribute to the smoothing.
- A larger Width will result in a smoother output geometry, but will also remove small features that are smaller than the filter Width.
- The different smoothing algorithms are:
- MeanCurvature: Moves the surface in a normal direction by an amount equal to the mean curvature
- Laplacian: Applies Laplacian flow, This applies a weighted average of the voxel and its neighbors.
- Dilate: Moves the surface outward by the amount specified.
- Gaussian: Applies a gaussian flow, a weighted average of the voxel and its neighbors where a Gaussian determines the weights.
- Median/Mean: Median/Mean flow. This is an averaging procedure where voxel values are replaced by the median/mean of a neighborhood.
- Eikonal: Re-distances the voxel grid so that the result is an SDF.
Apply a filtering function to smoothen a voxel grid.
Inputs
| Name | Type | Description |
|---|---|---|
| Grid | Voxel Grid | The voxel grid to smoothen. |
| Filter | Voxel Grid Filter Enum | The smoothening method to use. |
| Iterations | Integer | The number of filter iterations to apply. |
| Width | Integer | The width of the filter kernel in voxel units. This value is only used for the Gaussian, Median, and Mean techniques. |
Outputs
| Type |
|---|
| Voxel Grid |

