POV-Ray : Newsgroups : povray.binaries.images : Need help with Colefax' Splines (Coil spline) 1 attachement 12kb : Re: Need help with Colefax' Splines (Coil spline) 1 attachement 23kb Server Time
16 Nov 2024 10:30:02 EST (-0500)
  Re: Need help with Colefax' Splines (Coil spline) 1 attachement 23kb  
From: hughes, b 
Date: 10 Feb 2003 00:04:16
Message: <3e4732d0@news.povray.org>
I'm not too familiar with the spline macro so I was hoping someone else,
even Chris Colefax himself, might know of a remedy for this. What it seems
to be is that the coil object (torus spiral) is meeting in a mirrored
fashion instead of compensating for the bend. I looked over the macro quite
a while but I can't see a simple solution. Unless maybe it would be to use a
different object.

Bob

"Manuel Kasten" <kas### [at] gmxde> wrote in message
news:3e46d439@news.povray.org...
>
> Here's the reproduce:
> ----------code----------
> #include "spline.mcr"
>
> #declare coil = create_spline (
>    array[3] {<-75,0,0><0,0,3><75,0,0>},
>    create_default_spline +
>    spline_sampling (on) )
>
> #declare coil2 = create_spline (
>    array[3] {<0,0,-75><-3,0,0><0,0,75>},
>    create_default_spline +
>    spline_sampling (on) )
>
> union {coil_spline (coil, spline_steps (40)
>    + spline_radius (4)
>    + coil_radius (1.5))
>    pigment {rgb <1, 0, 0>}
>    finish {phong 0.6}
>    translate 20*z}
>
> union {coil_spline (coil2, spline_steps (40)
>    + spline_radius (4)
>    + coil_radius (1.5))
>    pigment {rgb <1, 0, 0>}
>    finish {phong 0.6}
>    rotate 90*y
>    translate -20*z}
>
>
> camera {location  <0,500,-150> look_at <0,0,0> angle 20}
> background{rgb 1}
> light_source { <500,500,500> rgb 1 }
>
> ----------end_code----------


Post a reply to this message

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