Ensures that all cloth seams have the same number of points on both sides.
ClothMatchPanels goes through all the cloth seams on all panels and makes sure the seam points line up. It inserts points on one side of the seam if there are more points on the other side of the seam. It also adds more points if the distance between two points is bigger on one side of the seam than on the other. Optionally, it also refines seams by inserting more points along the seam.
Use this SOP after refining panels with the ClothRefine SOP. For an overview of panel-based cloth modelling, see the ClothCreateSeam SOP.
This SOP uses the ClothMatchSeams SOP to do its work. You likely don’t want to use ClothMatchSeams directly, though, and should instead use this SOP.
Parameters
| Seam Match Tolerance | The tolerance used to test whether points on both sides of a seam match up. After making the number of points on each half of the seam the same, this SOP pairs each point on the seam with the corresponding point on the other half. For each point in a pair, it computes its distance along its respective seam. If the distances are not within the tolerance of each other, the SOP will add new points on both seam halves. Note Each point on a seam is assigned a value between 0 and 1, depending on that point’s distance along the seam, and this tolerance is used when comparing these seam values. The tolerance is not in terms of 3D distance. |
| Refine Seams | Refine the seams in addition to making sure existing seam points match up. If the maximum distance between two adjacent points on a seam exceeds this distance, new points will be added to the seam. This parameter exists because you may want to refine seam edges more than you refine the interior of the panel. |
| Maximum Stitch Length | The maximum allowed distance between adjacent seam points in this SOP’s output. See the Refine Seams parameter. |
| Triangulate | Triangulate any non-triangular polygons in the panels, after adding any new points on the seams. Houdini’s cloth simulator uses triangles, so if you're using the output of this SOP as input to the cloth simulator then you should turn on this checkbox. You can use the ClothMatchPanels SOP to add extra points to the seams prior to using the ClothRefine SOP to triangulate the panels. In that case, you’ll want to disable triangulation here, since the ClothRefine SOP will triangulate the panels itself. You may still need to add an extra ClothMatchPanels SOP after the ClothRefine SOP (with triangulation enabled) to ensure that the seams still match up after panel refinement. |