Draw line through the Voronoi elements

I want to draw line inside the Voronoi mesh. I need the information of the elements, through which the line is crossing. Any idea or sharing the script are always welcome.

Do you expect replies without posting your GH file? With internalized geometry, of course, or a Rhino file.

3. Attach minimal versions of all the relevant files

Sorry for misunderstanding. I shared the grasshopper script. Could you please
GH_scipt.gh (24.5 KB)
suggest the suitable methods

Your geometry is not internalized and you didn’t post a Rhino file.

Wall_cyclic.3dm (48.7 KB)
This is reinforced concrete wall panel will be reinforced in both orthogonal directions as in figure.

Untitled.3dm (33.9 KB)

One way could, obviously be this in a reduced form because 14,000 points are really a lot.
GH_scipt a.gh (31.3 KB)

1 Like

Try with the CLASH component. You need meshes for that so drawing a pipe with your line with a very small radius will do the trick.

draw-line-through-the-voronoi-elements.gh (13.5 KB)

1 Like

Thanks for sharing the script. Actually, I need to draw several lines inside the Voronoi mesh domain from the “input coordinates of start and end points”.

Then it becomes a matter of data tree managment of your CELLS and PIPE (referring to my previous reply) elements, the rest is the same.
If you have an example where you are struggling maybe I can try something

Thanks for the solution. If I want to directly import multiple lines from single brep as shown in picture. How can I solve this without directly draw one by one line. Please check the GH files and Rhino files. Thanks


GHscript_Re2_Atik_Col_Rebar_11.gh (29.4 KB)
Slab_lines.3dm (75.5 KB)

I don’t have rhino 8, please upload just the gh file with the necessary internalized geometries.

Looking at the screenshot I can see you plug a brep into a line, I don’t think that works.
Connecting a container of one data type to a container of another type sometimes works by automatically converting or extracting the necessary information. For example, if you connect a plane to a point, you get the plane’s origin; if you connect it to a vector, you get the plane’s normal (etc, a lot of other examples). However, in this case, I don’t think you get anything

GHscript_Re2_Atik_Col_Rebar_11.gh (31.6 KB)

This is how I’d do it. If you want separate lists of clashing breps for each line just remove the “flatten” to have each pipe in a separate list

here you see what I was talking about. I plug in teh pipe (BREP) into a MESH and it converts it

Please share the script.

this is your script, I just drew some lines myself and referenced them in the line component (in your script there are no lines referenced)