How to remove 2 faces of a rectangle

Hey dear friends
I’m new in grasshopper and I would like to know how can I remove 2 upper and lower faces on the rectangle box. cull.gh (8.7 KB)
I need something like below file:
cylinder.gh (2.6 KB)
Any answer would be appreciated.

so you just needed to remove the two items. cull index removes the item at I in the list.
The following script takes a list of surfaces, finds the top and bottom and removes them.
0 removes the bottom and -1 removes the top. Then join the brep together at the end.
cull2.gh (4.7 KB)

You can use rectangle component and extrude

1 Like

Thank a lot dear Christopher Ho
That really work!
You have been very helpful!

Thanks a lot Sghier
That was very easy way and helpful!