Grasshopper

algorithmic modeling for Rhino

Has anyone encountered anything like taking 3D geometry and relaxing/flattening it, like the unroll tool but the resulting faces stay together.

Similar to how UVW Unwrapping works (Ive attached an example image). In the linked video at 3.20 he relaxes the uvw map.   https://www.youtube.com/watch?v=iy2W3P2UPIw

Im looking at taking a 3D geometry and flattening it to print FLAT on a 3D Printer, the process I am using will only allow relatively flat geo. The way in which it is warped will allow the geometry to be able to be pushed out to its 3D shape

Can anyone point me in the right direction?

Thank you

Views: 3715

Attachments:

Replies to This Discussion

Hi Matt,

This is possible with a mesh using the OnPlane goal to pull all the vertices onto a flat plane, and Length goals to stay as close as possible to the original surface dimensions. Depending on the shape you might also need to introduce splits in the mesh and/or add smoothing or hinge goals to make sure it opens up and doesn't flatten in a folded configuration. Of course if the mesh is doubly curved then it won't be possible to flatten it without some degree in plane deformation.

If you post an example of the kind of mesh you'd want to use this on I'll set up a simple definition.

Hi Daniel,

Wasn't expecting such a quick response! Thank you. Ive attached an example mesh.

Im using paneling tools to create geometry on a surface so ive had to backtrack a little bit to provide a mesh for kangaroo to work with but would it be possible to run the grid points paneling tools uses through kangaroo?

Thanks  

Attachments:

Attached is a definition showing one way of setting this up.

By triangulating the mesh first and trying to stay as close to those edge lengths as possible it remains close to an isometric mapping. It then pulls the vertices onto a plane. With just these the mesh could easily get flattened in a folded over state, so it uses a combination of smoothing and a hinge force to open it out.

In this case it is possible to do this with fixed strengths, but with more complex geometry it may sometimes be necessary to start with the the OnPlane goal strength at zero and gradually increase it only after the hinge/smooth has started to open the mesh out.

Attachments:

Hi Daniel,

That all makes sense, thank you very much!

Any idea why this wouldn't work with multiple meshes? I went through all of the Kangaroo goals unplugging 1 by 1 and it seams 'Smooth' component is the one that breaks the sim engine...

Also, for some reason flattened mesh is closer to original one without using edge length goals (I've compared edge lengths pre and post simulation with and without Edge Length goal). No matter how I adjust the strength, it always folds or wrinkles with Edge Length goal and it stays perfectly flat and relatively close to original length without it.

I've also tried to use Length(line) goal but the result was similar.. (upper image - with EdgeLength goal, lower - without it, simply using OnPlane goal to stretch the mesh)


210913_FlattenMesh-example.gh

The only thing I can advise you is to do a search on Google, I'm sure you will find what you need there

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