That is correct .
Also, for me
Array is one and the same. Unless
array means a
tuple. I’ll read more about this.
I thought method overloading was to add more methods to an existing class but didn’t know you can use the same name of the class and just changing the arguments.
Also what confused me was this example by @lando.schumpich :
# created by Lando Schumpich Mar 2019
import scriptcontext as sc
# set up getter
brep_to_unroll = Rhino.Input.Custom.GetObject()
brep_to_unroll.SetCommandPrompt("Sub select a brep face")
brep_to_unroll.GeometryFilter = Rhino.DocObjects.ObjectType.Surface
# test if success
if brep_to_unroll.CommandResult() != Rhino.Commands.Result.Success:
# get geometry (is brepface)
brep_face = brep_to_unroll.Object(0).Geometry()
# get parent
brep_parent = brep_face.Brep
# extract face from brep_parent faces list (preserves trims)
brep_trimmed = brep_parent.Faces.ExtractFace(brep_face.FaceIndex)
# create instance of unroller class, with trimmed face as input
unroller = Rhino.Geometry.Unroller(brep_trimmed)
arrBrepUnrolled, arrCurveUnrolled, arrPointUnrolled, arrTextDotUnrolled = unroller.PerformUnroll()
# add to doc
for brep in arrBrepUnrolled:
if __name__ == "__main__":
arrBrepUnrolled, arrCurveUnrolled, arrPointUnrolled, arrTextDotUnrolled = unroller.PerformUnroll() he’s unpacking all of these objects together not separately as it is in the api. This is very confusing.