3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Blender PythonでSine波を描画

Last updated at Posted at 2015-11-06
sine.py
import bpy
import math

for n in xrange(360):
    x = n
    y = math.sin(n * 20 * math.pi / 180.0) * 10
    bpy.ops.mesh.primitive_cube_add(location=(x * 10, y * 10, 1))

3D空間にキューブでsine波を表現できます。3Dステージ作りにお使いください。

3
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?