|
|
Hi ABX,
Ok, I've just spent an hour or two trying to get these macros to work, but the problem
is that
I just don't understand how to use them. I had hoped to find a pre-written macro that
would
allow me to declare my spline, declare my object, declare the number of objects, and
the macro
does the rest, orienting the objects to the spline, and placing them at equal
distances along
it.
The thing is, I'm annoyed at myself for not being able to understand your macros. I've
been
POV-ing for years, and yet still come unstuck regularly. I would really appreciate it
if you
could provide any help here, and show me how to use the macros.
I'll need some way of orienting the objects to the spline, so I'll need another macro
to do
that?
The temporary code below uses Rune's Spline_Trans macro.
#declare MySpline =
spline {
cubic_spline
-1,<-1,1,0>,
0,<0,1,0>,
0.3, <2,0.7,-2>,
0.6,<3,-0.8,-3>,
0.85,<0,-0.8,-3.5>,
1,<-1,-0.8,-3.72>,
1.1,<-2,-0.8,-3.75>
}
#declare MyObject =
cone {<0,0,0>,0.2,<0,0,.2>,0.15}
#declare Count=0;
#while (Count<=0.95)
object { MyObject pigment { rgb <1,.3,.7>}
Spline_Trans(MySpline, Count, y, 0.1, 0.1)
//MySpline(Count)
}
#declare Count=Count+.025;
#end
Thanks.
Andy Cocker
"ABX" <abx### [at] abxartpl> wrote in message
news:pcdenusb2i02trqkr5k2afkdo7d92jbcf9@4ax.com...
> On Thu, 5 Sep 2002 11:40:31 +0100, "Andrew Cocker" <mai### [at] andrewcockercouk>
> wrote:
> > Any help greatly appreciated. i don't want to have to abandon this idea and use
sphere_sweeps
> > for the cables.
>
> http://news.povray.org/qr7aeugkvt07m6obnchs3hben663jbnkit%404ax.com
>
> ABX
Post a reply to this message
|
|