Split Line with polygon

Im trying to split/trim a group of lines on the inside of a polygon ?

I’ve tried Shatter, but it only breaks all the lines into individual lines.

Apprecieate any Help in advance

PLD_Shed_Wall.gh (22.9 KB)

Thank you

Is it possible to have more than 1 rectangle ? I’ve just been adding them in series but it becomes cumbersome ?

Thanks in advance for any help.

Provide an updated file?

PLD_Shed_Wall (Question2).gh (22.5 KB)
Volker,

These are windows in a wall so I’d like to be have upto maybe 20 windows, but at the moment I was going to limit it to say 6. Ideally I’d like to be able to just pick a point in Rhino and be prompted for the window size, but thats another question again.

Thank you for your time.

Greg

PLD_Shed_Wall 2.gh (64.9 KB)

1 Like

http://grasshopperprimer.com/en/1-foundations/1-5/0_designing-with-data-trees.html

@Rajeev2 I learned to use and implemented the Flip Matrix component here because of the solution you provided Elisa with.

1 Like

Hello
for what it is worth I made a little component to make the same pattern for a project in my house (covering part of the house with PVC planks). The advantage of this tools is that it ouputs length of planks so it could by used with 1D nesting program to calculate the consumption of planks.

I’m not sure I understand the direct connection of your Planks in Region component with what is being done here, but that might lie in my interpretation of the lines as the centerlines of structural members that get interrupted by the voids of windows and doors. Still a valuable contribution though if it came to the outter cladding of the wall by planks.

While we have an expert at hand, what do you think would be a better way of getting user inputs for the window dimensions and positionings other than my grasshopper-beginner’s solution of using panels?

I gave my 2 cents because I saw this image, nothing more.

1 Like