vdb_tool 10.8.0

# This example demonstrates how to read a polygon mesh from a PLY file,
# convert it into a narrow-band level set, and write the result to an
# OpenVDB file.

# Read polygon mesh from binary PLY file
read bunny.ply

# Mesh to level set conversion:
#   dimension is 256 voxels along the longest axis
#   narrow-band half-width is 3 voxel units
mesh2ls dim=256 width=3

# Write level set to an OpenVDB file
write bunny.vdb
