Created
June 4, 2018 18:45
-
-
Save sbaer/024925ce77273a809a797e792b6d47f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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