File: hello_world.txt

package info (click to toggle)
openvdb 10.0.1-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,108 kB
  • sloc: cpp: 293,853; ansic: 2,268; python: 776; objc: 714; sh: 527; yacc: 382; lex: 348; makefile: 176
file content (14 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
vdb_tool 10.6.1

# This examples demonstrates how to create a narrow-band
# level set of a sphere and save it to an OpenVDB file.

# create a narrow-band level set of a sphere
# the dimension is 256 voxels (default value)
# the radius is 100 world units (default value)
# the half width of the narrow band is 3 voxels (default value)
# the sphere is centered at (0,0,0) in world (and voxel) space (default value)
sphere dim=256 radius=100 width=3 center=(0,0,0)

# write level set to file
write sphere.vdb