POV-Ray : Newsgroups : povray.newusers : Sphere_Sweep help! : Re: Sphere_Sweep help! Server Time
31 Jul 2024 00:30:33 EDT (-0400)
  Re: Sphere_Sweep help!  
From: St 
Date: 17 May 2003 13:18:41
Message: <3ec66ef1@news.povray.org>
"Sean Sabbage" <sab### [at] btinternetcom> wrote in message
news:BAEC1363.23E22%sab### [at] btinternetcom...
> Hi... my first post here... but anyway, to get right down to the
question.
> I'm trying to use a sphere sweep, but I get a strange error message
that I
> don't understand. Any help?
>
> Attempt to malloc zero size block (File: sphsweep.cpp Line: 1613).
>
> File NewShip line 202
>
> here's the code
>
> sphere_sweep {
>     cubic_spline
>     3,
>     <0,0,0>,3
>     <5,5,0>,3
>     <10,0,0>,3
>     pigment {Green}
> }
>
> should I have more spheres for a cubic_spline?

 Hi, I'm not sure what the above error actually means, but I think
yes, you should specify 4 spheres for a cubic_spline, and 4 lines of
parameters, here's a golden worm-like thingy:

sphere_sweep {
   cubic_spline
    4,

    <-3, 4, -3>, .03
    <-5, 0, 0>, 0
    <-1, 0, 0>, .3
    <-2, 5, 0>, 2

    translate <2.5, 1, 0>
    scale 3
    texture {T_Gold_2A}}

   ~Steve~


>
> Sean
>


Post a reply to this message

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