Created by: portnov
- Add variable offset mode - offset amount is controlled by another curve;
- Add "Specified plane" algorithm; it selects offset direction vector so that it satisfies two conditions: 1) it is perpendicular to curve's tangent vector, and 2) it lies in so-called "offset operation plane", which is specified by user by providing the normal vector of such plane (in other words, offset direction vector is perpendicular to normal vector provided by user). This algorithm is supposed to give good results for planar or almost planar curves. The resulting curve may have twists in places where original curve's tangent vector is parallel to offset operation plane's normal (i.e. tangent is perpendicular to offset operation plane). Hint: you may use "Linear approximation" node to automatically calculate normal vector of offset operation plane.
I had to make an Mk2, because of new "OffsetCurve" input, required for variable offset mode.
Preflight checklist
Put an x letter in each brackets when you're done this item:
-
Code changes complete. -
Code documentation complete. -
Documentation for users complete (or not required, if user never sees these changes). -
Manual testing done. -
Unit-tests implemented. -
Ready for merge.