Hi, I’m trying to create a small addon for creating pipes with a consistent radius from curves (trying to solve this problem).

I’m converting the curve into a mesh and want to resize the resulting circles in the corners to ellipses, according to previously calculated sizes, so the cylinders between those circles have parallel edges. The scaling has to be applied along a specified plane, like using the view orientation, not global or local. That way, the height (perpendicular to both edges connected by the circle) can stay unchanged.
The resize function however does not allow to enter vectors, it only accepts true or false for x/y/z to determine the constraints.

How can I set a custom constraint axis for the resize function?
Thanks in advance.