Hi guys,
i’m currently writing a verlet cloth solver plugin for Maya, for learning purposes.
(if you’re interested you can find a quick introduction here: http://vimeo.com/71160448).
For solving the cloth i simply use the edges of the input geometry as structural constraints (green).
I now want to implement the shear constraint as seen here (yellow):
I can make that work by iterating over the triangles of the mesh (MFnMesh.getTriangles()),
but that only gives me the current triangulation.
This means i end up with only one yellow line, excpet two forming an X.
Does anybody have a nice idea how i could get the two triangle edges (one representing the current triangulation and the other its flipped equivalent)?
Thanks a lot
Here is a link to the whole cloth solver article:
http://cg.alexandra.dk/2009/06/02/mosegaards-cloth-simulation-coding-tutorial/