POV-Ray : Newsgroups : povray.animations : Drawing lines... : Re: Drawing lines... Server Time
20 Jun 2021 17:25:00 EDT (-0400)
  Re: Drawing lines...  
From: m@b
Date: 4 Oct 2020 23:09:00
Message: <5f7a8e4c$1@news.povray.org>
On 12/10/2019 23:15, kurtz le pirate wrote:
> Hello,
> 
> I have a really stupid question.
> 
> I want to draw a line (a cylinder in fact), between two points in a 
> "gradual way". Let us take two points A and B separated by a distance 
> DIST and trying to do :
> 
> delta = 0
> while (delta < DIST)
>    draw cylinder from A to A+delta
>    increment delta
> end
> 
> And the 'last' cylinder is draw from A to B.
> 
> 
> I'm lost between 'vnormalize', 'vtransform' and 'reorient' :(
> Probably very easy, but I'm ditching.
> 
> 

#declare A = <-2,1,-0.5>;
#declare B = < 3,3, 0.5>;
#declare C = B*clock + A*(1-clock) + <0,0,0.00001>; // Or declare a 
sub-clock

sphere{A,0.2 pigment{rgb<1,0,0>}}
sphere{B,0.2 pigment{rgb<0,0,1>}}

cylinder{A,C,0.1 pigment{rgb<0,1,0>}}


Post a reply to this message

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