Shrink Wrap with Kangaroo

This definition approximates a shrink wrap for generic brep geometry.

There are two steps:

The first step creates a mesh from a bounding box and drags each vertex to the closest point on the brep. Andrew Heumann offered a similar definition back in December (http://www.grasshopper3d.com/video/shrinkwrap-with-grasshopper?xg_source=activity)

The second step takes the original vertices of the mesh and treats them as anchor points (since they are now 'attached' to the geometry). The mesh is then triangulated and subdivided and a pressure value is placed on the new faces with Kangaroo.

 

Uses Kangaroo and Weaverbird.  This is still in development, so please let me know about any issues with the definition.

 

Video: http://www.grasshopper3d.com/video/shrink-wrap-with-grasshopper-and-kangaroo

 

Files (old):

ShrinkWrap.3dm 

ShrinkWrap(old).gh

Update (03232014):

Here's an updated file which will work with the current version of Kangaroo.  This definition also uses UTO's Mesh Tools. Use the same 3DM as above and let me know if you run into any issues.

ShrinkWrap-032314.gh

 

Load Previous Comments
  • Alexander Torrez Chang

    I remember a previous version that Daniel might have worked on with a "Glue Range" slider.
    Is that simply the spring pos/neg direction?

  • Philip J Brown

    the download link is down any way to fix this? love to have this script it's very impressive. 

  • Ralph Zoontjens

    Is there a way to start with a triangle mesh instead of breps?
    I know that Daniel Piker has a solution to this, but he hasn't shared his definition (yet)