Help with extruding according to distance between geometry and surface?

Hi everyone!


This is a dumb question. I have a tessellation going and all I want to do is to extrude each one up to the curved surface. I've tried deriving points from the tessellation and pulling them to the surface, getting the distance, chucking that back into extrude but the extrusion goes crazy. This is what I am trying to do (hope it's clear enough):



I would post my grasshopper definition but it's really laggy and probably not worth putting up.


Would be really great if someone could give me some hints of screenshot of their definition!


I've attached the rhino file below.


Thanks in advance!


Cheers,

Ra

  • up

    Danny Boyes

    Hi Ra,

    How's it going? Are you using just one point to represent each cell off your tessellation? If not, try using the centroid of the cell as your reference point. Also when "chucking [the distance] back in" you might find that the data structure has changed by adding a branch, you could look into using the pathmapper to collapse the branches up a level.

    Without going into the tessellation side of things here's how I would get the distance between two surfaces at various points.

    click to enlarge

    PS what version are you guys using these days?
    1
    • up

      Chris Hanley

      another slightly different approach is something like this. similar to danny's approach, it gets the centroid of each cell to generate an "infinite ray" between the centroid and a "mesh approximation".
      Then it creates a vector beween the centroid, and the intersection point, moves the original cells up to that point, then graft and loft between the curves.
      (there is probably a better way but it was fun to try!)

      1