CurveBooleanUnion fails to produce a result for the attached input.
bu.3dm (40.5 KB)
I’m using the following python script to execute the CurveBooleanUnion command.
import rhinoscriptsyntax as rs def Test(): crvs = rs.GetObjects("Curves", rs.filter.curve) u = rs.CurveBooleanUnion(crvs) if u: rs.SelectObject(u) else: rs.MessageBox("Union failed") # Check to see if this file is being executed as the "Main" python # script instead of being used as a module by some other python script # This allows us to use the module which ever way we want. if __name__ == '__main__': Test() # NOTE: see UseModule.py sample for using this script as a module
I’ve looked at the CurveBooleanUnion code in curve.py and it seems like the underlying Rhino function must be failing to return any valid curves.