File: dilate_level_set.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 (17 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
vdb_tool 10.6.1

# This examples demonstrates how to read a narrow-band level set
# from an OpenVDB file, dilating it, and writing out the level set
# to a different OpenVDB file.

# read level set from openvdb file
read bunny.vdb

# Dilate level set
# radius of dilation is 5.0 voxels
# spatial discretization is 5'th order WENO
# temporal discretization is 1'th order TVD-RK
dilate radius=5 space=5 time=1

# write level set to file
write bunny_dilated.vdb