unroller_following_geometry.py (8.6 KB)
unroller_following_geometry.3dm (45.5 KB)
Adding a following boundary curve to an Unroller causes some following TextDots to disappear.
The attached .3dm contains one valid, single-face Brep. The attached Python 3 script reproduces four cases using the same surface:
| Following geometry | Expected TextDots | Returned TextDots |
|---|---|---|
| One TextDot | 1 | 1 |
| Same TextDot + boundary edge 3 | 1 | 0 |
| 81 TextDots | 81 | 81 |
| Same 81 TextDots + boundary edge 3 | 81 | 73 |
The minimal failing point is evaluated directly on the surface at normalized UV (0.125, 0.0). All eight omitted points in the larger test lie on the surface boundary.
The script uses:
unroller = Rhino.Geometry.Unroller(face.UnderlyingSurface())
unroller.AbsoluteTolerance = model_tolerance * 0.1
unroller.ExplodeOutput = False
# Including this curve causes the TextDot to disappear:
unroller.AddFollowingGeometry(brep.Edges[3].DuplicateCurve())
unroller.AddFollowingGeometry(
Rhino.Geometry.TextDot("0", point)
)
breps, curves, points, dots = unroller.PerformUnroll()
Both runs return a valid unrolled Brep. In the 81-point comparison, the resulting Breps are geometrically identical, and the 73 TextDots returned by both runs have identical positions. The difference is that eight TextDots are omitted when the curve is included.
Is this a bug in Unroller, or is there a restriction on combining following boundary curves and TextDots located on the surface boundary?