POV-Ray : Newsgroups : povray.newusers : Points on line. : Re: Points on line. Server Time
30 Jun 2024 03:33:03 EDT (-0400)
  Re: Points on line.  
From: Roman Reiner
Date: 26 Nov 2011 05:50:00
Message: <web.4ed0c35e6b9045f7c4586f720@news.povray.org>
#local i=0; #while(i<N)
  sphere {
    0, 1
    translate p1+(i/(N-1))*(p2-p1)
  }
#local i=i+1; #end


kurtz le pirate <kur### [at] yahoofr> wrote:
> Hello,
>
> I have a point p1=<x1, y1, z1> and p2=<x2, y2, z2>
>
> I would put N equally spaced points on the 'line' from p1 to p2.
>
> Do you have an idea to do this ?
>
>
> Thanks
>
> --
> klp


Post a reply to this message

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