Something I’m noticing now that I’m developing my scripts in c# more is that many of the “create” methods for geometry classes return arrays on objects instead of a single object. I have a couple of questions about this that would help me use the methods better.
-
What is best practice for taking the output of a method and using it in another method? This is important for when the method uses a single object, not an array or list (eg. Brep.CreateFromSweep to be used as part of Intersection.BrepBrep)?
-
What benefit is there to returning an array verses a single object? This is doubly true when you have methods that can only return a single object, (eg. Brep.CreateFromSweep).