| |
Returns whether the two attached control points create a loop. This is TRUE if cp1 and cp2 are the beginning and the end of the same spline. If a loop is created, a number of things happen. If cp2 is the first control point in the spline, the spline is reversed before the loop is made. The last control point in the spline gets deleted (make sure you keep this in mind if you are performing operations on HCPs after they are attached (check the return value to see if a loop was made). Also, the control point before the last control point has its IsLoop flag set, and its GetNext() pointer set to the first HCP in the spline. If the attach operation does not create a loop, then the two HCPs are stacked, and added to their attached control point list. They are also linked to the HCP::GetHead() which stores the position for all of the control points that are attached to each other.
- Parameters:
-
|
cp1 |
- first control point to attach |
|
cp2 |
- second control point to attach |
- Note:
-
If you use AttachCPs in such a way as to cause a loopback, be careful not to add the tail CP to any HGroup that you are accumulating, as something happens to that CP after the attach that will cause a crash if you've added it to the group.
|