... to haunt you, don't they?
A while ago, I had the following situation: a plane in 3D, with points on it given by their 3D coordinates. I needed the 2D coordinates of each point within the plane. At the time, I looked at the plane, and figure it's damned near perpendicular to the x/y plane (near enough at least), so I'll just use the Z coords of the points as the y-coord in the plane and use to distance from the edge as the x-coord. Quick simple, and it worked fine. So I incorporated it into the main project as a small subfunction called 'nodes2D'.
Now I'm adapting the whole thing to complex 3D geometries, and I'm wondering why I'm getting messed up data for certain planes. Then it hit me. Stooooooooooooooooopiiiiiiiiiiiiiiid! |