#!/bin/sh
openscad $1 -o $2
sed 's/, timestamp = [0-9]*//' -i $2
sed 's/-nan/nan/g' -i $2
sed 's/-\(0[],)]\)/\1/g' -i $2
sed 's/-\?[0-9].[0-9]*e-[0-9]\{2,\}/0/g' -i $2