|
|
kurtz le pirate <kur### [at] gmailcom> 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.
>
>
> --
> Kurtz le pirate
> Compagnie de la Banquise
You want something along the lines of:
1. calculate the distance D between the points.
2. normalize the vector P (P2 - P1)
3. #for (M, 0, D, StepSize)
cylinder {0, P*M, LineWidth translate P1}
#end
Post a reply to this message
|
|