PDA

View Full Version : Tracing a line



agreene
03-05-2002, 01:13 PM
Hello,
I was wondering if there was anyway to trace the x, y, z coordinates of a line based on your vertices.

Thanks,
Allison

chxfryer
03-05-2002, 04:20 PM
It has been a while (used to have to do that with 3d in dos). Find the slope of the line. Find the distance between to 2 vertices, then use interpolation of the slope from one vertex to another.

john
03-05-2002, 04:29 PM
That soln works, but Breshnam's line algorithm doesn't have as many floating point ops per iteration. Actually, it doesn't have any. its faster. but, eh, those were in the days when people used to count cycles.

cheers,
John