Grasshopper

algorithmic modeling for Rhino

I have a definition that selects faces in the same direction-all left faces, all right faces, etc. Right now, it works if the faces are all orthogonal (first image), but goes haywire when the input faces are distorted (second). What is going on?

Surfaces in the second are a rhino cage edit of the surfaces in the first image. They were originally all closed polysrfs exploded just to input into grasshopper. 

In the definition attached, each surface is compared to an original (its the small box in the far left of the top image) The point there is the ability to select for more than just the 6 faces of a cube, but find the closest match to more complicated inputs. In the second image, distorted surfaces are being compared to a distorted original. 

If I have my math right, two parallel unitized normal vectors should have a dot product of 1, and the further away from 1 their dot product the further away from parallel, no? Why does it fail when I leave the comfy land of 90 degrees?

Views: 1100

Attachments:

Replies to This Discussion

oops, size limits. Here is the rhino file of the distorted not working bit.

Attachments:

Hi Peter,
you have the wrong uv coordinates for the EvaluateSurface input. Try these methods:

Hm, I took a closer look... ~ all planar surfaces, so the uv coordinates don't really matter:

Attachments:

Thanks! This is perfect- just needed to put the absolute value after the subtract component (otherwise it cant tell the difference between left and right)

I figured you wanted that Peter, but than again - you wrote "parallel" ;)
Nice that you fixed my teaser:)

Fair enough, naming things is not my strong suit. Thanks again!

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