Bug: UnrollSrf changes a following circle after a translation

Geometry and expected result

The model contains four objects. On the left is a planar strip, 4 by 1.375 inches, with one 0.375-inch-diameter hole and a separate closed curve tracing its boundary. On the right is a copy of both objects translated 4 inches along World Z. Both curves have the same direction and the same seam relative to their surfaces.

A single unroll should return one flat surface with a hole and one separate closed following curve in both positions. The following curve is the object to count. The hole in the flat surface survives in every case below.

Method Left strip (Fail) Right strip (Pass)
Rhino command UnrollSrf Two open curves. They join into one closed curve at model tolerance. One closed curve
RhinoCommon Unroller.PerformUnroll() Zero following curves One closed following curve, source index 0

Reproduce in the Rhino UI

  1. Open UnrollSrf.3dm. Keep the objects at their saved coordinates.

  2. Paste the following line into the Rhino command line. It selects the left surface and then its separate circle by name.

    _UnrollSrf _Explode=_No _Labels=_No _RelativeTolerance=0.02 _-SelName FailSurface _-SelName FailCurve _Enter
    
  3. Run SelNone, then SelOpenCrv. Rhino selects two output curves. Their measured lengths are approximately 0.03506 and 1.14386 inches. Run Zoom Selected to see them on the flat surface near the World XY origin.

  4. Reopen the original model without saving the test output. Run the same command for the right-hand pair.

    _UnrollSrf _Explode=_No _Labels=_No _RelativeTolerance=0.02 _-SelName PassSurface _-SelName PassCurve _Enter
    
  5. Run SelNone, then SelOpenCrv. This time there are no open curves. SelClosedCrv selects three closed curves in total, the two original circles and the one newly unrolled curve.

Reproduce the missing curve with RhinoCommon

  1. Open a new empty Rhino model. Open Reproduce.py in Rhino’s ScriptEditor and run it as Python 3. The script is self-contained. It reconstructs the single trimmed surface from embedded geometry data, duplicates and reverses its hole edge to make the following curve, and generates the translated control. It adds the four inputs side by side and reports the unroll results in the output.

  2. On the tested build, the output is:

    Fail: 1 flat surface(s), 1 hole(s), 0 following curve(s), 0 closed; source indices []
    Pass: 1 flat surface(s), 1 hole(s), 1 following curve(s), 1 closed; source indices [0]
    

The script makes one PerformUnroll() call per case, using one surface and one AddFollowingGeometry(curve) call.


UnrollSrf.3dm (61.3 KB)
Reproduce.py (9.8 KB)

i was able to repeat both the split curve from UnrollSrf and the missing curve from the script, thanks for the clear steps and files. Thanks for reporting RH-100815 UnrollSrf: Curve on hole edge split or dropped