From dcc04cba2446a7bfe8af8268229f3ca28e228b13 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 21 Nov 2016 03:08:58 -0600 Subject: added an example use of hackvr with the filebrowser dir. updated a bunch of stuff in hackvr needed to that that filebrowser working. added a multicast example what uses mcast program in my misc repo. updated obj2hackvr to require a filename as argument instead of using stdin --- tools/obj2hackvr.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/obj2hackvr.pl b/tools/obj2hackvr.pl index a835d77..793b5ea 100755 --- a/tools/obj2hackvr.pl +++ b/tools/obj2hackvr.pl @@ -2,7 +2,7 @@ use strict; -die "usage: obj2hackvr.pl name\n" unless $ARGV[0]; +die "usage: obj2hackvr.pl name file\n" unless $ARGV[0]; my $i; my $j; @@ -14,7 +14,8 @@ my @parts; my @points; my @tmp; my $tmp; -while() { +open(FILE,$ARGV[1]) if $ARGV[1]; +while() { chomp; @linepart=split(/ /,$_,2); $com=$linepart[0]; -- cgit v1.2.3