Square pipe hundreds of thousands of lines

Hello everyone! I have 430k short straight lines that I want to convert into tubes.


I have the following grasshopper definition to do so:

The problem is that this just crashes rhino after a while… any tricks that you can share or ideas to try and get it done?

thanks a lot!

430k is quite a lot. What are you doing this for? Surely not something you’re going to fabricate all in one part like that. If it is something you’re going to actually make real, I suggest chopping it into manageable chunks and piping those. If it is just going to be something you render, there is no real need to create nurbs geometry on those lines and you could instead just render them as pipes.

Either way, post your file with geometry internalized so people can help you. Image is worth a thousand words but on this forum a .gh file is worth 100x that.

1 Like

430k is a lot, how about line preview + line weight?

Post your curves please.

Hello James!
Yes, It’s just for rendering, but I do that on 3Ds Max and setting the pipe widths there crashes Max.
The rhino file is 100mb, but here it is:
https://www.dropbox.com/s/4h472tqutn8z0vj/Lineas.3dm?dl=1

And here’s the GH definition
tubos.gh (6.3 KB)

1 Like

I render in 3ds Max but setting line weight there (renderable spline is called) just crashes max :frowning:

I posted it later in the thread, sorry I didn’t do it from the start!

1 Like

Please make a new curve component in your .gh file and internalize the curves from Rhino, that way no one has to download anything from outside the forum, and it will all be inside your .gh file only. Don’t connect the curve component to anything and it wont have to calculate.

For render purpose maybe material + cutout bitmap?

Ok, I had to break it into two because it was to big for the forum:
tubosinternalized.part1.rar (15 MB)
tubosinternalized.part2.rar (12.4 MB)

Thank you very much!

I’ll let you know if this goes somewhere in an hour or so when I’m back from shopping groceries.

PS: it’s not going anywhere…

1 Like

Share list of 40 curves or less than when you get an answer use the original curves.
And it’s better if you use mesh pipe.

Making actual geometry for this doesn’t make sense - it would be better to create a texture with transparency.

2 Likes

The thing is I need it to be in 3d to render it and then project it into some planes to get this kind of effect:
02fd71d771f06dec58c6d8bc653c432d

At least… this is what I came up with… but I’m open to suggestions!

What is the relation between the images and your first question?

2 Likes

I’m going to render a front view of the hexagonal structure, and then project that render into the walls, ceiling and floor of a space so that when you are standing in that particular spot, it looks like the 3d structure is actually there

1 Like