Skip to content

Instantly share code, notes, and snippets.

@sbaer
Created June 4, 2018 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbaer/024925ce77273a809a797e792b6d47f1 to your computer and use it in GitHub Desktop.
Save sbaer/024925ce77273a809a797e792b6d47f1 to your computer and use it in GitHub Desktop.
import Rhino
import scriptcontext
import time
import math
start = time.clock()
for i in xrange(600000):
line = Rhino.Geometry.Line(0,0,0,math.sin(i),math.cos(i),0)
scriptcontext.doc.Objects.AddLine(line)
end = time.clock()
diff = end-start
print "time difference ", diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment