Vision and Mobile Robotics Laboratory | Software
Home | Members | Projects | Publications | Software | Videos Internal

Example mesh preprocessing script

#!/bin/csh

# PreprocessMesh
# This script assumes that the resolution of the input mesh is really high
# and the coarse mesh should have around 1000 faces.


CleanMesh $argv[1]$argv[2].wrl $argv[1]$argv[2].wrl -rel_mel 4 -mps 100

SmoothMesh $argv[1]$argv[2].wrl $argv[1]$argv[2].wrl -n 25

# create coarse mesh

wrltosmf $argv[1]$argv[2].wrl $argv[1]$argv[2].smf>
qslim -o $argv[1]Coarse$argv[2].smf -B 10 -t 1000 $argv[1]$argv[2].smf
smftowrl $argv[1]Coarse$argv[2].smf $argv[1]Coarse$argv[2].wrl

up


The VMR Lab is part of the Vision and Autonomous Systems Center within the Robotics Institute in the School of Computer Science, Carnegie Mellon University.