How to get center lines from bounding box?

Hello,

I’m a beginner for grasshopper with Rhino 7.

I’d like to know how to get center lines from a bounding box using grasshopper like below example.

Thank you,

J

capture

this could be one way


BoundingBoxCenter_Lines.gh (11.4 KB)

Thank you for the quick reply with a solution. It really helps and I’ll study on that. :slight_smile:

-J

Another way:
bounding box lines.gh (111.1 KB)

Another way:


Box center lines re.gh (14.6 KB)

You can use U,V,W parameters

bound_.gh (14.7 KB)

Yours seems like it would be the fastest way, computationally, right? Like for 10000 boxes, my use of the area component on each face might be a bottle neck?

Logically yes

1 Like

Hello All,

Thanks a lot for the solutions! All the solutions will be helpful for me to study Grasshopper.

Grasshopper must be an attractive tool and I’d like to study it more deeply.

Thanks again!

-J