POV-Ray : Newsgroups : povray.bugreports : slope problem : Re: slope problem Server Time
7 Dec 2021 17:29:27 EST (-0500)
  Re: slope problem  
From: jr
Date: 31 Jan 2019 14:10:00
Message: <web.5c5346ebc81a0ad348892b50@news.povray.org>
hi,

clipka <ano### [at] anonymousorg> wrote:
> Am 31.01.2019 um 19:21 schrieb jr:
> > so how can one "fudge" it, ie make the cylinders end a predictable distance from
> > each sphere?
>
> Preusuming you have the "central" sphere at P1, and a "remote" sphere at
> P2, and you want a distance of D between sphere centers and the cylinder
> ends, then
>
>      V = P2 - P1
>
> is the vector describing direction _and_ distance of the cylinder you want;
>
>      Vn = vnormalize(Vn)
>
> is the unit-length directionof that vector; and
>
>      Q1 = P1 + Vn*D
>      Q2 = P2 - Vn*D
>
> are the points you want the cylinder ends to be at.

thank you very much, will try.

(and thanks re light positioning)


regards, jr.


Post a reply to this message

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