|
|
Am 19.11.2016 um 19:37 schrieb John Greenwood:
> #declare Place = function {
> spline {
> linear_spline
> // -4, <-10,0,-2>
> -2, <0,0,-1>
> 0, <1,0,0>
> 2.0, <0,1,1>
> }
> }
[...]
> This seems to work but if I add another point by deleting the // I get an error
> which does not make sense (to me).
It's not a bug, it's a feature.
Re-formatting gives the following code:
#declare Place = function {
spline {
linear_spline
-4, <-10,0,-2>-2,
<0,0,-1> 0,
<1,0,0> 2.0,
<0,1,1>
}
}
Since `<-10,0,-2>-2` is a valid vector expression, that's how POV-Ray
will interpret it.
Using more commas should fix the ambiguity of the code and thus solve
the problem.
Post a reply to this message
|
|