Grasshopper

algorithmic modeling for Rhino

New Refraction component and fixed bug in TargetRays (Reflect)

Refract

Calculates the refraction of rays through mutliple surfaces.

Inputs:

  • SourcePts: The start of a ray.
  • TargetPts: The end point of a ray.
  • Surfaces: The surface through which the rays will be refracted.
  • Ni: The Refraction Index of the first medium the ray starts in i.e. Air
  • Nr: The Refraction Index of the medium the ray is passing into i.e. Water
  • Solid: Toggling this will treat the space between any two surfaces as the same medium. Check example files included in the download for more info.

Refraction Indices:

I have included a list of generic Refraction Indices in the Grasshopper definition.

Views: 654

Replies to This Discussion

So you did go for Srfs. 

On your curved refraction example I have a 99.99956% match with my clustered Brep solution. I wonder if this is due to Gh-6-digit rounding.

And very great Idea to keep all .gha separate, so you can pick the components you need.

Great Work, Thanks for sharing!

Hi Phillip,

Thanks for Msg :)

Is your solution in the form of a script or GH-definition? Either way, I would really like to hear about you clustered brep solution, maybe you could send me an example?

Sure. 

Yes, it is just a very basic gh-component cluster. 

Please send me a pm with your email-adress and I will send you the file.

Best,

Phillip

carson@studionu.nu

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service