Lines from surface points

Hello all,

I have a closed, bottle-like surface with varying diameter.

I generate points on the surface and create lines from those points.
But the line following surface normal’s direction,

test_1.gh (20.6 KB)

(The current document contains 49 objects, and does not depend on any plug-ins.)

and i’m trying to get those white lines,
{ i used a surface offset then i’m getting white lines
but some complex surfaces has offset problem}

i want to ask “ Is there any better way to create those lines “
or any topic which could help me to do this.

I would do something like this:

  1. Get the surface normal vector at each point (the red lines in your picture).
  2. Project that vector to the XY plane.
  3. Scale the projected vectors to the desired length.
  4. Use the original points and the scaled vectors to generate the lines you want.

test_1 (1).gh (25.7 KB)

@leopoldomonzani crazy fast beat me to it! :sweat_smile:

i’m still struggling in vector concept that’s why .. @Measure

thanks a lot @René_Corella ,

it’s very clean and fine method.