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

# This examples demonstrates how to read a polygon mesh from a ply file,
# converting it into a narrow-band level set, converting the level set
# into an adaptive polygon mesh and writing out the mesh to a binary ply file.

# read OpenVDB file with points
read bunny.ply

# Mesh to level set conversion
# dimension is 256 voxels
# narrow-band level set width is 3 voxel units
mesh2ls dim=256 width=3

# Level set to polygon mesh conversion
# Mesh adaptivity is 0.25 %
ls2mesh adapt=0.25

# write polygon mesh to binary ply file
write bunny_smooth.ply