1#!/bin/sh 2 3# change creaseAngle in all IndexedFaceSet nodes of a VRML file 4 5# Copyright (C) 2003 J. "MUFTI" Scheurich 6# 7# This program is free software; you can redistribute it and/or modify 8# it under the terms of the GNU General Public License as published by 9# the Free Software Foundation; either version 2 of the License, or 10# (at your option) any later version. 11# 12# This program is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# GNU General Public License for more details. 16# 17# You should have received a copy of the GNU General Public License 18# along with this program (see the file "COPYING" for details); if 19# not, write to the Free Software Foundation, Inc., 675 Mass Ave, 20# Cambridge, MA 02139, USA. 21 22if test "$#" = "0" ; then 23 echo Change the creaseAngle in the whole file 24 echo Usage $0 newcreaseangle [ inputfile.wrl ] 1>&2 25 exit 1 26fi 27 28NEW_CREASEANGLE=$1 29 30shift 31 32awk -v newangle=$NEW_CREASEANGLE -f `dirname $0`/creaseangleChange.awk $* 33 34