Getting the Edge Normal

I’m currently working hard on Dynamo practice.
I want to create a vertical line from the edge of a triangular pyramid, how should I do it?

You will need to extract the Surface.Normal for the adjacent faces to each edge, then get their Vector.Average to be able to start a Line.ByStartPointDirectionLength from a Curve.PointAtParameter on the edge. :wink:

2 Likes

Thank you for your response
However, the results were a little different from what I was looking for. How should I get the results if I need to create a line just above the edge when viewed from directly above, as in the photo?

@jj06jj Assuming you want the edges to explode outwards uniformly like this …
pyramidEdges
pyramidEdgesOffset.dyn (39.5 KB)

3 Likes

I’m sorry I didn’t make it clear enough…
I want to create a red line that is parallel and 90 degrees perpendicular to the yellow line when viewed from above.

The approach remains almost the same as in my previous response, except for the line towards the end
pyramidNormal1


pyramidEdgesNormal.dyn (41.4 KB)

2 Likes

Thanks for the quick response!!
By using Vector.AngleWithVector for these things, the answer will be,

Use the Line.Direction node to get the vector:

3 Likes

@Vikram_Subbaiah @Kulkul
Thank you for the solution!!

1 Like