helix:螺旋形 オブジェクト

下の命令文は x 軸に平行な螺旋形を表示します。

spring = helix(pos=(0,2,1), axis=(5,0,0), radius=0.5)

helix オブジェクトは次の属性とデフォルト値を持ちます。pos (0,0,0), x (0), y(0), z(0), axis (1,0,0), length (1), radius (0.2), coils (5), thickness (radius/20), color (1,1,1) (color.white とも指定できます), red (1), green (1), blue (1), and up (0,1,0)。 

注意:cylinder, arrow, cone, pyramid, helix に対する pos 属性は端面で決まります。一方で box,sphere,ring に対する位置属性は中心に対して決まります。