|
|
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
|
|