problem with rotate, using parametric angle

5 views
Skip to first unread message

Maxime ANDRÉ

unread,
Aug 16, 2020, 9:10:59 PM8/16/20
to Curv
Hi everyone,
I have a problem with rotate, and i can't figure it out. Here is the code :

parametric
    a :: slider[0,90] = 45;
in
cube >> rotate {angle: a*deg, axis: Y_axis}


I get this error:
ERROR: argument #1 of dot: ([-1,-1,-1]*(1-cos(-((<param a>*0.017453292519943295))))) is not a list
at file "/usr/local/lib/curv/std.curv":

But if instead i do this :
cube >> rotate a
it works ok.

and
cube >> rotate {angle: 45*deg, axis: Y_axis}
works ok too.

What do I do wrong ?

P.S. : I have just discovered Curv, it is a very nice work, very elegant ! It has a lot of features that I dreamt of when I used OpenScad ! well done !

Doug Moen

unread,
Aug 16, 2020, 9:23:15 PM8/16/20
to Curv
You have discovered a bug in Curv, relating to the 'parametric' feature.
I'll take a look and see if I can find a fix.

I'm glad you like Curv.

Doug Moen.
--
You received this message because you are subscribed to the Google Groups "Curv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to curv+uns...@googlegroups.com.

Doug Moen

unread,
Aug 17, 2020, 2:27:24 PM8/17/20
to Curv
The bug is fixed.
Reply all
Reply to author
Forward
0 new messages