ShrinkWrap - Different Result in Rhino and Grasshopper

Hi @Trav ,

i encountered a strange behaviour with the ShrinkWrap command. My goal is to “cap” the openings of the pipe that can be seen on the image. This is just a simple example to demonstrate my problem

I extruded a simple Tube in Rhino and then converted it to a mesh using the exact same parameters that are used for the render mesh of the object

To get the desired result i then exploded the resulting mesh into 4 single meshes. After selecting these and using the Shrinkwrap command in Rhino the result on the left side can be seen. If the exact same geometry and the exact same parameters are used in Grasshopper with the ShrinkWrap command, you get a different result (on the right side).

It seems, that the Fill holes toggle has no effect at all if you provide multiple meshes. If only one single mesh is feed into the geometry input, everything works as expected. Deactivating the parallel computing of the component also has no effect.

Can you (or somebody else) give me a hint how to achieve the same result in Grasshopper like with the ShrinkWrap Command in Rhino?

Thanks for your help!
-Kevin

SW_Rh_vs_Gh.3dm (3.1 MB)
SW in Gh.gh (9.8 KB)

My result looks more similar but the Grasshopper shrinkwrap has naked edges and slightly different vertex count.

Thanks for looking into it! Did you enable the “Fill holes in input objects” in the rhino command? Do you see any effect in grasshopper if you switch the boolean toggle to true?

I did not have fill holes enabled in the Rhino command since that would fill the open mesh ends.

This is exactly what i’m after (like on the left side of the image shown above). In my case the Rhino command does that but the Grasshopper one not.

I was able to create a full cylinder after running TriRemesh on the four meshes.

I don’t have any proof but I believe Shrinkwrap works better with meshes which have a good definition. If the parts were surfaces, I’d also mesh them first and avoid long and narrow faces.

SW in Gh mrtn.gh (21.5 KB)

Thanks, that workaround did it (at least for this simple example).
But tbh i still don’t fully understand why in Rhino it works without the remeshing and in Grasshopper not. Would be nice if this step wasn’t neccesarry, because for more complex models the computation for the remeshing get’s quite heavy.

-Kevin

Just found another possible workaround: Scale all the meshes just a tiny bit. Then the desired effect of the fill holes toggle can be achieved

hi @k.popp thanks for reporting
RH-88571 ShrinkWrap:different result in gh