Hi,
I have a little problem : i want to make multiple copies of a shape, that are translated.
i simplified the code :
union [for (i in [1..3]) (box >> move [i*10, 0, 0])]
it doesn't work (error message below)
but if I remove the multiplication :
union [for (i in [1..3]) (box >> move [10, 0, 0])]
It works but obviously the boxes are not translated.
I don't understand what is wrong.
Maxime André
here is the error message :
ERROR: assertion failed
at file "/usr/local/lib/curv/std.curv":
132| assert (is_bbox3(shape.bbox));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at file "/usr/local/lib/curv/std.curv":
879| in make_shape {
^^^^^^^^^^^^
880|> // TODO: dist[x,y,z,t] : shape.dist(...[x,y,z]-delta, t),
881|> // TODO: dist p : shape.dist(...p[[X,Y,Z]]-delta, p[T]),
882|> dist p : shape.dist(p[X]-delta[X], p[Y]-delta[Y], p[Z]-delta[Z], p[T]),
883|> colour p : shape.colour(p[X]-delta[X],p[Y]-delta[Y],p[Z]-delta[Z],p[T]),
884|> bbox : [shape.bbox[MIN]+delta, shape.bbox[MAX]+delta],
885|> is_2d : shape.is_2d,
886|> is_3d : shape.is_3d,
887| };
^^^^^