LoginSignup
3
0

More than 5 years have passed since last update.

Shade3D(ver16)は、Pythonでスクリプトかけるので、お絵かきしてみる

Last updated at Posted at 2018-01-29

Shade3D(ver16)は、Pythonでスクリプトかけるので、お絵かきしてみる

import math
scene = xshade.scene()
scene.begin_creating()
for n in range(0,360*20,2):
    m = n * 1.1
    scene.create_sphere(None,((50) * math.sin(m * math.pi/180)* math.cos(n * math.pi/180), (50) * math.sin(m * math.pi/180) * math.sin(n * math.pi/180), (50) * math.cos(m * math.pi/180)),3)
scene.end_creating()

出来る図形は、こんな感じ

1.png
2.png

このデータを元に3Dプリンタサービスに発注した結果が、こんな感じ
(注:Shade上で、若干手加工してます)

r21photo.jpg

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0