> tools

Voxelize

tools/voxelize·v1.3.0
IN:1  OUT:4

Voxelize converts mesh or point cloud geometry into a 3D texture volume representation. This operator transforms traditional polygon-based geometry into a volumetric voxel grid, enabling volume rendering, simulation, and other volumetric effects.

The operator supports two modes: Mesh and Point Cloud. In Mesh mode, geometry is voxelized using ray casting techniques to determine interior/exterior regions. When voxelizing meshes, the Hit Attributes output provides ray casting hit information including attributes like RayHitNormal, RayNumHits, RayInside, and RayDistance, making it useful for advanced volume generation workflows. In Point Cloud mode, individual points are converted directly into voxel density values, with optional point count limits for performance optimization.

The voxelization process offers extensive control over resolution, bounds, colors, and density. You can define custom spatial bounds, adjust the maximum axis resolution, and control how colors are applied to the volume. Multiple output modes are available including volume, surface shell, and signed distance field representations, with adjustable smoothness and background colors for empty voxel regions.

PAGEVoxelize
Max Axis ResolutionMaxaxisresolutionMaximum resolution along the longest axis of the voxel grid.
MarginMarginAdditional padding around the geometry bounds.
Get BoundsGetboundsAutomatically calculate bounds from input geometry.
Display BoundsDisplayboundsVisualize the voxelization volume bounds as a bounding box.
Output VolumeOutputvolumeOutputs the volume representation of the voxelized geometry.
Output SurfaceOutputsurfaceOutputs the surface shell of the voxelized geometry.
Surface ThresholdSurfacethresholdDensity threshold for extracting the surface shell from the volume.
Output SDFOutputsdfOutputs a signed distance field representation of the voxelized geometry.
SmoothnessSmoothnessSmoothing amount applied to the voxelized result.
Point ScalePointscaleScale multiplier for point size when voxelizing point clouds.
Enable Max Point CountEnablemaxpointcountLimits the number of points processed when voxelizing point clouds.
Max Point CountMaxpointcountMaximum number of points to process for point cloud voxelization.
Override if Color ExistsOverrideifexistsWhen enabled, uses the Color parameter instead of point color from the geometry.
Density ScaleDensityscaleMultiplier for voxel density values.
Background AlphaBgalphaAlpha value for empty voxel regions.
PAGECommon
BypassBypassPass through the first input to the output unchanged.
Free Extra GPU MemoryFreeextragpumemFree memory that has accumulated when output memory has grown and shrunk.
Input 0 POP POPX_in1
Output 0 TOP Volume
Output 1 TOP Surface
Output 2 TOP SDF
Output 3 POP Hit Attributes