Grasshopper

algorithmic modeling for Rhino

I'm reading a number of values from external sensors which correlate to mesh vertices as shown on the attached image, I now wish to approximate or solve the values at the other vertices.  My gut instinct is that this can be solved with the point charge field component however I'm unsure as to how to utilize the decay function.  Any pointers on how to figure this out would be great. Thanks

Views: 1078

Replies to This Discussion

I've found that inverse distance weighting, or Shepard's method works nicely for this sort of thing.

(see here for one example http://www.grasshopper3d.com/forum/topics/packing-circles-on-surface)

You'd need to tweak the above slightly for the case where the sample values are exactly on existing vertices of the mesh, to avoid division by zero.

Changing the exponent affects how smooth the interpolation is, with low values being a more gradual blend, and as the value goes up it approaches a voronoi diagram.

Thank you Daniel, I've just been looking at weighted averages, I'll investigate this method.

As I'm now working with values that occur at regular intervals I've been looking at bilinear interpolation see attached .gh file for more info.  Hope this is useful to someone. 

Attachments:

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