Grasshopper

algorithmic modeling for Rhino

Hi there,

I have created a definition that draws random lines from one side of a  rectangular frame to the opposite. Very simple and clean. The idea is to get this lines as a pattern on a glass panel for a curtain wall.  This will be printed on the glass units with a ceramic-frit technique.  My problem is that the random pattern creates diagonal (which are the ones that I need) as well as horizontal en vertical lines on the frame (which are the lines that i don't need). So I've tested all the lines against the horizontal en vertical lines of the frame.  I get two types of results for an horizontal line 3.1415...and 0. So I've created a cull pattern in order to eliminates this results from the list. But  I can't test both angles in one F component, I need to do this in two different passes getting of course twice the information that I need. How can you write a formula that will test x<3.1415.... as well as x≠0 in only one F component

 

here are the definition and rhino file

 

Thank you all in advance

cheers

Views: 1332

Attachments:

Replies to This Discussion

Hi Claudio, I used a Nor component, I only culled horizontal and vertical lines though.
Attachments:

Super nice you definition. Thank you very much, I always appreciate when it is a clean def.

 

cheers

I don't know how efficient this is but it seems to work.

 

Chris

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service