0

I have a mesh that I want to bend along the curve, then move all vertices to match its Z position. Here's the process:

  1. Mesh in X length of the curve
  2. Bend the mesh to curve on XY plane
  3. Align mesh's Z positions to the curve, using the X position from step 1 for curve length sampling. Process And there's a problem - the mesh is not properly aligned with curve, depending on the angle it's too low or too high. I assume I have to correct the X length input for sampling, but I have no idea how to do this.

Edit: the blend with the case: https://blend-exchange.com/b/Pav9wL2L

1 Answers1

1

I hope this is what you're after.. it's just an adaptation of the X Curve Deform group from here, which you say you are using, changing the mapping in the curve's coordinates.

  • X to the position on the curve
  • Y to the cross-product of the curve tangent with (0,0,1), flat to XY, at right-angles to the tangent
  • Z to (0,0,1)

The new arrangement is shown below:

enter image description here

The result:

enter image description here

It would be simpler to adjust the tilt to make the curve 'Z Up'.. figuring that one out, unless @quellenform gets there first :)

You could take this futher in the mesh, by, for example, flattening the tops of the turrets to XY

Robin Betts
  • 76,260
  • 8
  • 77
  • 190