-
Notifications
You must be signed in to change notification settings - Fork 73
(int_)Slider comparison -> not a boolean? #110
Comments
(I suppose it's this part of the documentation I'm running into: "The shape expression that follows a parametric clause must be compiled into a GLSL shader program for execution on the GPU. This means that only a restricted subset of Curv may be used. Right now, there are too many limitations. The implementation is not yet complete." |
Yes, this is a current limitation of the SubCurv compiler. It's also a bug, which according to my 2021 roadmap, is supposed to get fixed this year. There is a partial workaround. To explain, I'll first note that the SubCurv compiler considers a parameter like There are limitations in SubCurv relating to One case is Another case is Here's a version of your program that is modified so that it compiles and runs.
|
With a recent bug fix, there is no longer an error on line 14. The expression However, the 3 following if statements still produce an error. |
Describe the bug
I'm trying to write a 'sector' (circle cut out function).
For testing I wanted to stick a slider on it to choose the angle.
The function needs a couple of comparisons on the angle.
This fails with ERROR: ((*0.017453292519943295)<=3.141592653589793) is not a boolean
Leaving out the parametric slider, it works as expected
Curv Program
It might just be me misunderstanding something about the language,
though.
Thanks!
The text was updated successfully, but these errors were encountered: