Hi there! I'm fairly new to Houdini, so I hope one of you can give me a little guidance here. Modo (my ‘native’ app) can solve the problem I'm working on in two dimensions, for UVs, but not in three, for a mesh.
I'm trying to: distort, or ‘relax’ a mesh object by moving verticies such that all edges are the same length. In essence, treat every edge like a spring trying to pull/push itself to length 1. Attached are a picture of the mesh I'm trying to apply it to, and the 2D solution (subdivided).
I've been messing around with the Spring SOP and the cloth functions, but haven't come up with anything and am getting a little desperate.
Thanks in advance!
Special spring solver: setting all edge lengths equal?
5629 5 3- LitoNico
- Member
- 5 posts
- Joined: Oct. 2010
- Offline
- LitoNico
- Member
- 5 posts
- Joined: Oct. 2010
- Offline
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
I've never used springs or cloth, but if you figure out a good solution, I'd really like to know how you did it. I have an industrial application that could really use a good solution to this problem, where all the lengths need to be exactly the same, the angles need to be sufficiently similar to nearby angles, and given those constraints, the surface needs to as close as possible approximate a specified surface. Hopefully someone can suggest something!
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
The Cloth Object takes three different sets of geometry:
Geometry
Rest
Animation
Rest as an edge length constraint is already used by the Cloth Solver. Mainly the stretch parameters which is all you need to do this.
All you need to do is feed in your appropriate Rest geometry and this will apply the appropriate edge length constraints. Use the Plastic Deformation controls to relax those areas that are undergoing a lot of deformation.
Use a SOP Solver to affect the vector fexternal attribute to push the cloth about and to flatten it in whatever axis you wish.
Geometry
Rest
Animation
Rest as an edge length constraint is already used by the Cloth Solver. Mainly the stretch parameters which is all you need to do this.
All you need to do is feed in your appropriate Rest geometry and this will apply the appropriate edge length constraints. Use the Plastic Deformation controls to relax those areas that are undergoing a lot of deformation.
Use a SOP Solver to affect the vector fexternal attribute to push the cloth about and to flatten it in whatever axis you wish.
There's at least one school like the old school!
- LitoNico
- Member
- 5 posts
- Joined: Oct. 2010
- Offline
Maybe I'm misinterpreting what you're doing here, because it's apparent you're much more familiar with Houdini than I. But, looking through your network, it seems like you're just using the grid object as both the rest geometry and the ‘distorted’ obejct. I, on the other hand, don't have any ‘neutral’ rest geometry to work with…
- Alejandro Echeverry
- Member
- 691 posts
- Joined: June 2006
- Offline
Thanks Jeff, very nice cloth example!!!
Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
-
- Quick Links