Grasshopper

algorithmic modeling for Rhino

Triangle Pattern Cutout in Surface by Image Sampling

Hi i am very new to Grasshopper so forgive my poor knowledge

this work is for my graduation project and i am in hurry so please help!

what i am trying to do is making a triangular pattern that is cutout in a surface and the cutout size is controlled by an image sampling that's it

what i did so far is using the Triangle panels component by lunchbox to draw my pattern and after that i am stuck i watched so many tutorials and tried but something always go wrong,

the result i am looking forward to achieve is exactly like the attached image.

thanks in advance

Views: 1916

Attachments:

Replies to This Discussion

Hello

here is an example of what you can do. It seems strange that you didn't find examples !

  • Get center of your triangle with area component (not trivial isn't it ! ) 
  • Project these points on your surface and get UV (coordinate in 2d on your surface) 
  • As these UV have not the same domain as your image (image domains are by default [0 1] you need to remap theses UV coordinate 
  • Theses remapped coordinates are put on image sampler 
  • Put for example brightness as output of "image sampler" and use that as factor to scale your triangles
  • Triangles  are scaled with an origin which is its center. Scale is red because some Factor is zero. You can put a function between "image sampler" and "scale" for example x/(max-min)+min in order to have no scale factor more big than max and no scale less than min. Up to you to choose.

I am speechless!  really you saved me thank you very much .

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service