Hi, new to Rhino Script. When I create a sweep using Sweep1 command line, the surface is fine without changing any seam points etc. When I use AddSweep1, the surface twists as if the seam points are not aligned.
I tried it on a different machine with another Rhino install and it works fine. Both are Version 5 SR14 64-bit (5.14.522.8390, 5/22/2017). Please let me know if it is some setting I need to change.
Hi, you are correct. Sweep1 command with ‘Natural’ seam point adjustment produces the identical result as the Python script. How do I reproduce Sweep1 command with ‘Automatic’ seam point adjustment in Python script or VB script? I see flags for Freeform/Roadlike and Simplify/Refit/Rebuild in AddSweep1 VB script, but nothing for ‘Automatic’ seam. Thanks
Hello - the command, as opposed to the lower level AddSweep function, has some seam matching stuff… you might be able to cook up something with CurveDirectionsMatch() and CurveSeam and so on, but my guess is it may be hard to make it reliable.
Looks like setting the CurveSeam parameter to either the original start point or 50% of the cross-section curve domain works. I make each sweep and then switch between 0 or 0.5 depending on which one works. A bit cumbersome (have about 100 rails), but it’s certainly easier than command line. Thanks for your help.