2008年11月23日

甲丸リング

能書きはいいからやってみせろよ。

ああやってやるさ。

 

image

 

エクセル青枠の部分を入力します。

内径mmは自動計算されます。

 

そしてプログラムが生成されます。

 

xshade.scene().begin_creating()
xshade.scene().begin_line(None,1)
xshade.scene().append_point([10,0,-1.5])
xshade.scene().append_point([10.5,0,-2],[10,0,-2],[10.5,0,-2])
xshade.scene().append_point([11,0,-2])
xshade.scene().append_point([12,0,-1],[12,0,-2],[12,0,-1.5])
xshade.scene().append_point([12,0,1])
xshade.scene().append_point([11,0,2],[12,0,2],[11,0,2])
xshade.scene().append_point([10.5,0,2])
xshade.scene().append_point([10,0,1.5],[10,0,2],[10,0,-1.5])
xshade.scene().end_line()
xshade.scene().end_creating()
xshade.scene().solid_revolve([0,0,-1],[0,0,1])

 

Shadeのスクリプトに貼り付けて実行!

 

どうぞ。

image

 

工数4時間くらい。

 

あんま丸くないから甲丸じゃないかもな。

 

前のはポイントが4個でしたが。

これは8個。

 

もっと増やせば裏抜きができるはず。

石座もこんな感じで作れるはず。

そしたらエタニティの自動プログラムができるはず。

 

(はず)

 

次はレンダリングのマクロでも。

0 件のコメント: