Grasshopper

algorithmic modeling for Rhino

Dear Forum,

Attempting ShrinkWrap Effect

 

Kangaroo Forces:

Equalize -- avoid uneven stretching of mesh.  keep it even.

CollisionSurf -- object to wrap around.

PLaw -- original box vertices are attracted to target object centroid.

Springs -- keeps vertices of original box in correct distances from each other.

 

Problem:

I would like the make the cutoff length open-ended, so the distances of the edges wrapping around the object keep shrinking until all lengths are uniform and cannot shrink any further.

Also, as you can see in my images, the edge start collapses over each other.  

 

Any thoughts would be very kind.

Best, Ognek

 

Views: 7597

Attachments:

Replies to This Discussion

Hi Ognek,

 

a few thoughts:

 

- adding some weak zero-rest length springs (in addition to the ones you already have with cutoffs to stop them getting too short) will make the mesh contract more smoothly than pulling everything towards the centre.

 

- I don't think it will be possible to get the edge lengths very close to even without some crumpling occurring.

 

- Is this just a test case with the 2 spheres ? because if this is the actual geometry you want to shrinkwrap, you can use springs with cutoffs to simulate solid balls, which will be much much faster than using surface collision.

Attachments:

Hi Daniel,

 

Thanks for solving the problem. 

Hoping to be able to ShrinkWrap any geometry, even multiple objects that are not physically connected.

 

Perhaps its because the original object is a box, and unrelated to the target geometry, that its difficult for the points to evenly wrap around the target object, especially the more its shape differs from a box shape.  Was hoping that the points would evenly distribute themselves out, by setting a Cutoff, just like in your Distribution exercise.

 

Perhaps the wrapping mesh would work better if it originated as an offset of the target geometry?

 

 

Hey Daniel,

.Thank you so much for your infoI just used your sample ShrinkWrap_2 to generate this document,but there are some noise in the final mesh. I changed some of the variables in your original grasshopper document as you can see. I am not sure what is creating this deformation.

I would be so grateful for some help!

Thank you

Gaby

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service