Hi All,
i’m currently developing a C# script for spherical harmonics projection. I don’t know why but some base function i can’t visualize.
I isolated the mistake to:
Could it be a problem with Math.Sqrt or Math.Pow?
Kind regards
Simon
ProblemCScripting.gh (8.2 KB)
dale
(Dale Fugier)
3
@Weber_Simon - it looks like you are using Rhino 7. Is this correct?
– Dale
Hi Dale,
I tried it but it with && still doesn’t work. I instead insolated the following to an own c# script:
It gives me a null.
It might be with the different decimals.
Why?
Kr
Simon
Martijn.w
(Martijn Weiland)
9
Most likely due to performing the calculation with an integer, which truncates the result to 0.
Try with 5.0 and 16.0 instead.
Thanks for that. Now it works