Align normals to nonplanar curvature

Hi all,

I want to alight the normal of the Divide Surface to match the curvature generated by the Tween component, I am not sure how to do it but aligning the plane was what I thought could be the approach, can anyone help me figure this out?

Plane adjustment.gh (15.3 KB)

Thanks.

I’d like to know if this is what you want?

Hi Jesse, almost.

I want it to be flat on XY, at the moment the plane is vertical.

This is how the curvature warps as more layers are added:

And I want the Normals to warp with the curvature:

So it will point more inwards the more it warps.

So perhaps the plane could look like this, because the normal has warped with the curvature.

I hope this makes sense.

Thank you.

Perpendicular frame is surely what you need, if you want other orientation, just deconstruct plane then reconstruct it if necessary, normal is Y or -Y, you can orient it (using Z of XY plane)

Z =cross(X, Y)

And some play at the bottom of the file

Plane adjustment_LD.gh (31.4 KB)

Hi Laurent, thank you for this, I think the solution is somewhere there but I am lost with the additions you have included, let me explain perhaps better hopefully it will be easier for you to guide me with this, I want the vectors to be pointing the way you have done, just like this:

Plane adjustment.gh (12.2 KB)

But instead of using a curve I want this to be done to the curve divided by points, I want the vectors of all the points to be doing this, at the moment it is one point on every layer, because perp frame takes a curve instead of points.

The point of this is because I am writing a GCode for a robot arm to print in multi-axis, and the Gcode must be a series of points.

Thank you.

@jessesn gave you the solution, but multiple perpandicular frame gives the same answer.

Plane adjustment (1).gh (14.3 KB)

Yes, thats right, thanks Laurent.