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.
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 …
pyramidEdgesOffset.dyn (39.5 KB)
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
pyramidEdgesNormal.dyn (41.4 KB)
Thanks for the quick response!!
By using Vector.AngleWithVector for these things, the answer will be,