|
|
kurtz le pirate <kur### [at] yahoofr> wrote:
> 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 ?
You have been using POV-Ray too much when...
you wish you had paid more attention in math class instead if thinking that
you would never need that stuff in practice...
:P
An answer was already mentioned in another reply, but the explanation is:
You can calculate the weighted average of two points in the exact same way
as you would with to numbers. (If you change the weight linearly, you will
get linearly-placed points between the two endpoints.)
--
- Warp
Post a reply to this message
|
|