I have problem while doing Boolean difference of two solids in Python scripting component.
If I use difference = rs.BooleanDifference(Box, Spheres) then the error is “Runtime error(NullReferenceException): Object reference not set to an instance of an object”.
If I use difference = Rhino.Geometry.Brep.CreateBooleanDifference(Box, Spheres, 0.01) then the error is “Runtime error(ArgumentTypeException): expected Brep, got Guid”.
But if I take the output of Box and Spheres and input them to a different Python scripting component and perform the 1st method then it works fine. Also using SolidDifference componentRandom Pores in 3D 1.gh (7.3 KB) works fine.
Please help me with this.
Thank you !