The OEVoxelizeMethod namespace is used to instruct the OEMakeGridFromSurface function how to voxelize the surface onto the grid. A voxel is the three dimensional equivalent of a pixel.
The OEMakeGridFromSurface function for how to pass this constant into the function.
Each grid point is filled with the minimum distance squared from the surface. The distance is negative if the grid point is inside the surface.
The distance is squared to avoid calling the costly square root function.
Same as distance, but the value placed in the grid is plotted as a Gaussian function. This means each gridpoint is set to , where is the minimum distance to the surface. Note, where can still be negative inside the surface. Therefore, the grid values have the following correlation to the volume enclosed by the surface:
Same as distance, but grid points inside the surface are set to 1.
Discern the shape of the volume enclosed by the surface. This is done by mapping a gaussian for every grid point inside the volume. This smears out the surface boundary a bit and allowing a smooth drop off from the surface.
The default voxelization method is OEVoxelizeMethod.Distance.