I am writing a function that extrudes a 2D shape along a 3D spline, as found in 3D modeling software.
I need a way of translating a set of points P so that they all lie in a new plane L (preserving distances between points).
- P is all points where Z = 0;
- L is defined by (0,0,0), with the normal vector N.
I am using Processing, it has common matrix and vector functionality (but no quaternions) A conceptual or pseudo-code answer is OK.