Weld more than two pints in a weld for a vellum solve

   230   3   0
User Avatar
Member
624 posts
Joined: 11月 2005
オフライン
Hello,
I want to use the weld integer attribute to weld points together in a solve. but some points need to be welded to more than one point. some cloth patches that meet at the corner.
is that possible at all?





martin
Edited by sanostol - 2026年7月7日 16:07:13

Attachments:
Screenshot from 2026-07-07 22-03-03.png (283.6 KB)

User Avatar
Member
9694 posts
Joined: 7月 2007
オフライン
Set weld value for 131, 132, 133 to 60
And value for 60 to -1
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
624 posts
Joined: 11月 2005
オフライン
Thank You, Tomas! I tried to weld points to points that are welded to other points as well, was not aware that this is not allowed.
User Avatar
Member
29 posts
Joined: 1月 2016
オフライン
I recently had to do a weld like that but with curves. I'd describe the process as following:

1. Set up some per piece connectivity attribute on points (let's call it weldclass), we need it to ensure that the weld "converges" to a point with no weld of its own. In my case I also used it to control the hierarchy of the welded curve network (secondary lines welding to mains, but mains not welding to secondaries).
2. First Wrangle. Find the closest point that has weldclass lower than the currently processed point. I used nearpoints() to create an array, then iterate over it to find the first point with appropriate weldclass. Record the number of that point in a weld attribute, if there is no such point set the weld to -1.
3. Second wrangle, in a while loop, check the weld attribute of the target weld point found in the step 2. If the weld of the target is -1, stop the loop. If not, set the weld value to the weld of the target point and repeat. This will ensure that we are welded to the point that doesn't have a weld of its own.

In my case it worked relatively well, but this kind of manual welding won't setup bends across welds.
  • Quick Links