here is a little script. --------- count_polygons.sh #!/bin/bash -p
# Count number of polygons in a VRML file # # Bug: not fool-proof! (it's not a VRML parser) # # GZ 2007 sed -e '/coordIndex \[/,/]/!d' "$1" | sed 's/-1,[ ]*/-1,\ /g' | sed '/-1/!d' | wc -l --------- count_polygons.sh Note: the escaped newline must be preserved. HTH, Gab. ____________________________________________________________ Life is so constructed that the event does not, cannot, will not match the expectation. (Charlotte Bronte) ____________________________________________________________ Tel.: 05323 - 72 71 13 Computer Science Dept, Julius-Albert-Str. 4, 38678 Clausthal ____________________________________________________________
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
