|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
can't figure out why this construction don't work:
-------------------------------------------------
#declare X = 0;
sphere_sweep {
linear_spline
4,
#while (X < 4)
<X,0,0>, 0.1
#declare X = X + 0.1;
#end
}
-------------------------------------------------
and how to create sweep 'on the fly'.
Similar construction work fine for creating color_map, for example...
Help please !
--
YB
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 2023-02-28 01:34 (-4), yesbird wrote:
> Hi,
> can't figure out why this construction don't work:
> -------------------------------------------------
> #declare X = 0;
> sphere_sweep {
> linear_spline
> 4,
> #while (X < 4)
> <X,0,0>, 0.1
> #declare X = X + 0.1;
> #end
> }
> -------------------------------------------------
You specify 4 as the number of points, but you are counting by 0.1,
which gives 40 points.
One of the more annoying features of POV-Ray IMO is having to count the
points beforehand, but it is what it is.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 28/02/2023 08:57, Cousin Ricky wrote:
> You specify 4 as the number of points, but you are counting by 0.1,
> which gives 40 points.
Oh, really, thanks a lot !
> One of the more annoying features of POV-Ray IMO is having to count the
> points beforehand, but it is what it is.
Indeed, I've already fallen into this pitfall, and now did it again...
--
YB
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|