POV-Ray : Newsgroups : povray.newusers : sphere sweeps : Re: sphere sweeps Server Time
6 Sep 2024 12:13:11 EDT (-0400)
  Re: sphere sweeps  
From: Jerry Anning
Date: 31 May 1998 00:37:07
Message: <3570DE73.EE9F6D2B@dhol.com>
Mike Faneros wrote:
> 
> Can anyone help me figure out what's wrong with this sweep?  It seems to
> work fine with a linear_sphere_sweep, but catmull_rom and b_spline
> sweeps give me an error "Attempt to maloc zero size block..."  Maloc?
> Any hints?
> 
> sphere_sweep {
>   b_spline_sphere_sweep
>   3,
>   <0, .5, 0>, .5
>   <.75, 0, 0>, .25
>   <0, -1, 0>, .01
>   texture { pigment { color Black } }
>   finish { phong .4 }
> }
> 
> The idea is to have two of these for a yin-yang symbol...

Catmull-Rom and B-Spline are cubic forms of interpolation.  You need at
least 4 spheres to use either one (and 2 spheres to use linear).  Good
luck.

Jerry Anning
cle### [at] dholcom


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.