From 716345e270332b0c9552fc300cfb48d266b9cb31 Mon Sep 17 00:00:00 2001 From: tTh Date: Tue, 17 Sep 2024 11:23:05 +0200 Subject: [PATCH] add a feature --- code/awk/mkunion.awk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/awk/mkunion.awk b/code/awk/mkunion.awk index 2210feb..7dd7117 100755 --- a/code/awk/mkunion.awk +++ b/code/awk/mkunion.awk @@ -2,6 +2,7 @@ # create the sdl object: an union of sphere BEGIN { + nbre = 0 print "#declare Bubules = object" print "{ \nunion { " } @@ -10,9 +11,11 @@ BEGIN { { printf(" sphere { <%f, %f, %f>, %f }\n", \ $1, $2, $3, $4 ) + nbre++ } # closing sdl structure END { - print " }\n}\n" + print " }\n}" + printf "// %d bubulles\n", nbre }