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
Weld more than two pints in a weld for a vellum solve
225 3 0-
- sanostol
- Member
- 624 posts
- Joined: 11月 2005
- オフライン
-
- tamte
- Member
- 9694 posts
- Joined: 7月 2007
- オンライン
-
- sanostol
- Member
- 624 posts
- Joined: 11月 2005
- オフライン
-
- FedorK_FX
- 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.
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


