Grasshopper

algorithmic modeling for Rhino

GH Community,

Seeking help for patterning problem i having. Thank you in advance for your help. 

I am trying to cull a grid of points with the following pattern:

true

false

false

false

false

The first image (Capture1) shows the pattern in the correct way with the exception that it only has three (3) "false" inputs. When I add the fourth "false" input, the result is the second image (Capture2) which highlights entire rows. This is not the desired result. The pattern I want to see when selected, is the first point (0) green, then four red (1-4) points, then the fifth point (5) green. Any advice would be greatly appreciated. Thank you.

Views: 10165

Replies are closed for this discussion.

Replies to This Discussion

The problem is 'Project'.  The vector is wrong so results are lost at that point.  Several ways to do this...  'MapToSrf' from flat to curved is one way, so you can still use 'Project'.  Otherwise, you need to get the curved grid points to the surface without "anomalies" (because they are really off the edges of the surface).

Something I always need to remind myself is to work at low resolution first!

To that end, I made changes to the code, including the domain output of the 'Image Sampler', restored to the default '0 To 1':

And changed the 'v_dis' slider (the 'du/dv' inputs to 'ptSrfDis') 'Real' with a lower maximum of 20 instead of 100.

Then slowly increase the resolution by reducing the value of the 'v_dis' slider (needs a better name).

After all that, you can 'Pull' circles to surface and 'SrfSplit' to create holes, or whatever.

NOTE: As before, GH will lose the 'Image Sampler' when I save my copy so you'll have to copy/paste from yours, connect and edit that domain.

Attachments:

By the way, I meant "domain input of the 'Image Sampler'"...

These two images work well if you change the 'Image Sampler' from "Color Brightness" to "Alpha channel":

http://spainforum.me/media/aaron-mazze-and-world-map-simple.jpg

http://spainforum.me/media/fileworld-map-black-png-and-world-map-bl...

from Google image search, and here: http://spainforum.me/world-map-black.html/fileworld-map-black-png-a...

Attachments:

extruding the circles yields some whacky results.

On a curved surface, each circle must be extruded using the appropriate surface normal vector for that location:

Attachments:

Thanks for all your help on this Joseph, I have learned a lot

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service