Pipe Centerline

Hi,
I want to group these points into three different sets, each forming different circle.
Later I want to create three different circles and get their centroids, to get centerline of a pipe geometry.
I am attaching .3dm and .gh files here, can anybody help me to achieve this.


Test.3dm (130.3 KB)
Test.gh (5.2 KB)

How disappointing! I could probably salvage this geometry but that’s work :bangbang:

P.S. I might start with something like this:


pipes_2025Jun17a.gh (9.7 KB)

Geometry internalized, no need for R7 Rhino file.

Too late, gotta go now.

Hi
Please check updated files attached below.
Test.3dm (563.8 KB)
Test.gh (2.9 KB)

If all you care about is grabbing the centers at those rings you can try this.
(make sure your rhino tolerance is 0.001)
Test.gh (14.2 KB)



u can get pipe center curve directly in tekla live link

Still no solution? I prefer your first version of geometry to your second (same filenames :-1:). Many possibilities with the code I posted. Your second version has the pipe sections connected so what’s left to be done?

Two questions:

  1. Should the code be designed to connect more than three sections of pipe?

  2. Should the connections be rounded or straight intersections?

P.S. Centerlines and end edges:


pipes_2025Jun17d.gh (13.7 KB)

P.P.S.


pipes_2025Jun17e.gh (19.2 KB)

1 Like