I think there's a way to do this with minimal grasshopper. If your
lines are setup as a polyline, they'll have to be exploded - if you're
already working with segments, you should be fine. Just select the
lines and use the "PlanarSrf" command in Rhino. In cases like the
upper left corner of your screen shot, where the closed squares are
adjacent  you might get 1 surface instead of multiple ones. You can
just select the resulting surfaces (SelSrf to make it quick) and split
them with the generating curves (SelCrv). The only potential problem
with this is that the resulting pieces are trimmed surfaces, so their
UV grids potentially will extend past the surrounding curves. If this
is a problem, you could solve it with grasshopper by inputting the
resultant trimmed surfaces, extracting their wires, and regenerating
planar surfaces.

If you have to do this entirely in grasshopper, as part of a larger
definition, there is a way involving creating points at the center of
each grid square and extracting the lines bounding that square (if
they exist) and making surfaces from those.... but it is significantly
more work. If you're interested in this let me know and I can post a
definition.

Hope this helps.


Andrew

On Apr 25, 4:19 am, Karl <[email protected]> wrote:
> hi there,
>
> it would be nice, if someone could help me with the following
> question:
>
> i have a normal square grid which consists of numerous lines. the
> length of each line is the length of one unit.
> please have a look at the uploaded screenshot:
>
> http://grasshopper3d.googlegroups.com/web/090425.jpg?gsc=eERTfAsAAAB6...
>
> i want to fill up the units of the grid with a surface, which are
> surrounded by four lines.(my aim in the screenshot)
> does anyone has an idea?
>
> thanks in advance
>
> karl

Reply via email to