Problem : Planes follow curve and tangent on cylindric surface

Hi everyone,

I am trying to create planes which follow curves (letter) draw on a cylindric surface. These planes have to be tangent to the surface.

A few planes are correctly positionned but other are perpendiculare to the surface and I don’t understand why…

Somebody can help me please ?

Thank you !

Hello,

the reason: a line has infinite normals, same as curves, but curves usually have curvature and as such a principal direction. Plane calculation is unpredictable.
the solution: If you want the plane normal to the surface for a specific point on a curve, you just need

  • point at the curves parameter (t)
  • tangent at the curves parameter (t)
  • the closest surface/brep normal from the point

If you create the crossproduct of both vectors(surface normal and curve tangent) you will receive a 3rd vector. Creating a new plane -> origin=point, xAxis = tangent and yAxis = crossvector yields the tangent plane. Try for yourself.

Hope I could help.

Thank you for answering.

I tried to do like you told me but I have a problem again…

I send you also my work :

cylindre (4790356) RhinoAutosave.3dm (161.3 KB)
tangentplane.gh (9.8 KB)

Thank you for your help

obtain the closest points on the surface and evaluate the surface at those points:tangentplane_2.gh (15.8 KB)

1 Like

You could use Adjust Plane.

tangentplane_re.gh (15.2 KB)

1 Like

You forgot the cross product @TomTom mentioned:

2 Likes

ah that’s right, sorry, i missed the curve tangent part in my response!

1 Like

Awesome !! Thank you so much !!