algorithmic modeling for Rhino
I extracted a number of contours from a brep and am trying to offset those curves .25". When I set the offset distance to .25" a couple curves fail, when I offset it .32" it starts working again. Any idea what's going on or maybe a cleaner way to offset to prevent this problem?
I don't see any curve failures in this code you posted? 13 inputs, 13 outputs, all "Closed Planar Curves". I can get it to fail by using negative distance (expression "-x" on the 'Offset D' input.
The Clipper plugin 'PolyOffset' produces both +/- offsets; use the 'H (Holes)' output to get the inner offset. It will fail too when the distance is greater than the space available, somewhere near ~0.4 in your example.
What if i need to offset in one direction only?
Anyone have any ideas? I can't offset a set of curves without some of them failing and it's driving me crazy!