Code

modify calculation of control arm length
authoralvinpenner <alvinpenner@users.sourceforge.net>
Mon, 16 Feb 2009 19:04:07 +0000 (19:04 +0000)
committeralvinpenner <alvinpenner@users.sourceforge.net>
Mon, 16 Feb 2009 19:04:07 +0000 (19:04 +0000)
share/extensions/cubicsuperpath.py

index 8be2ad42c99208b81dbfa4db24d1379b236d53f7..ae9c308e129666ec1139ccfd9b50fbb4eb8a4bb0 100755 (executable)
@@ -76,7 +76,8 @@ def ArcToPath(p1,params):
     NbSectors=int(abs(start-end)*2/pi)+1
     dTeta=(end-start)/NbSectors
     #v=dTeta*2/pi*0.552
-    v=dTeta*2/pi*4*(sqrt(2)-1)/3
+    #v=dTeta*2/pi*4*(sqrt(2)-1)/3
+    v = 4*tan(dTeta/4)/3
     #if not sweepflag:
     #    v*=-1
     p=[]