From eee6279b3737e2037b5b6bfb84ca83fd8bbc6359 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 19 Nov 2017 01:48:42 -0600 Subject: some utilities for manipulating objects outside of hackvr --- tools/offsetshape.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 tools/offsetshape.sh (limited to 'tools/offsetshape.sh') diff --git a/tools/offsetshape.sh b/tools/offsetshape.sh new file mode 100755 index 0000000..a6bb595 --- /dev/null +++ b/tools/offsetshape.sh @@ -0,0 +1,5 @@ +#!/bin/sh +#objectname addshape points_in_shape +echo offsetshape: $1 $2 $3 +awk '{ for(i=4;i<=(3+($3*3));i+=3){$i+='"$1"';$(i+1)+='"$2"';$(i+2)+='"$3"';} print $0;}' + -- cgit v1.2.3