playing arround with the new Rhinocode Editor i noticed, that many / all (?) rhinoscript syntax functions, that add geometry to the document, call:
doc.Views.Redraw()
in old times with vb-script based rhinoscript, it was a huge performance increase to turn of redraw and only redraw at the end of a command.
Is this obsolete with the latest Display Pipeline ?
example:
FILE .rhinocode/python3.9-32/site-rhinopython/rhinoscript/curve.py
LINE 221 onward
def AddCurve(points, degree=3):
points = rhutil.coerce3dpointlist(points, True)
curve = Rhino.Geometry.Curve.CreateControlPointCurve(points, degree)
if not curve: raise Exception("unable to create control point curve from given points")
rc = scriptcontext.doc.Objects.AddCurve(curve)
if rc==System.Guid.Empty: raise Exception("Unable to add curve to document")
scriptcontext.doc.Views.Redraw()
return rc
just stumbled across ist and was wondering.
no actual use case - skipping rhinoscript syntax and use rhinocommon.
kind regards - tom