POV-Ray : Newsgroups : povray.general : Direction on a spline : Re: Direction on a spline Server Time
5 Nov 2024 03:20:47 EST (-0500)
  Re: Direction on a spline  
From: Luke
Date: 14 Jul 2003 11:28:44
Message: <3f12cc2c@news.povray.org>
"Jim Charter" <jrc### [at] aolcom> wrote in message
news:3f122fe5$1@news.povray.org...

> You use the Reorient_Trans macro from transforms.inc
>
> Say the front of your object is facing -z
> Off the top of my head :
> your_object { ...
> Reorient (  -z, your_spline ( count ) -  your_spline ( count - 1 ) )
> translate your_spline ( count )
> }
> You get the idea?
> -Jim
>

Or:

#declare Delta = something
...
Reorient( -z, your_spline ( count + Delta) - your_spline ( count - Delta ) )
...

and make Delta small compared to the domain of the spline.


Post a reply to this message

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