I don’t know why it does that, but when I evalute a 3D curve and orient a plan along the tangent direction of the 3D line at certain points, it flip the XY axis of the plan… Which is anoying because I need the X axis (or Y) always pointing upward.
The plane is flipping where the curvature changes. This can be expected if the plane is calculated from tangent and curvature vectors. Best to use Curve.PerpendicularFrameAt, which will prevent this.