diff options
author | hanemile <emile.hansmaennel@gmail.com> | 2018-03-19 20:47:13 +0100 |
---|---|---|
committer | hanemile <emile.hansmaennel@gmail.com> | 2018-03-19 20:47:13 +0100 |
commit | d0f19b8bc7ab11449cea028106504cacecd94f66 (patch) | |
tree | 8ce0c9298694554a46545731c949fb18332669cb /src/python/view.py | |
parent | 996e5529f566d7c64763c47348fc68fae51ef6a4 (diff) |
cleaned up
Diffstat (limited to 'src/python/view.py')
-rw-r--r-- | src/python/view.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/python/view.py b/src/python/view.py deleted file mode 100644 index 8b802b6..0000000 --- a/src/python/view.py +++ /dev/null @@ -1,30 +0,0 @@ -import bpy -from numpy import genfromtxt -import os -import sys - -directory = "other_stars/" - -files = [sys.argv[4] + ".csv"] - -for data in files: - path = str(directory) + str(data) - print(path) - - verts = genfromtxt(path, delimiter=' ', skip_header=0, usecols = (0, 1, 2)) - - #print(verts) - - # create mesh and object - mesh = bpy.data.meshes.new(data) - object = bpy.data.objects.new(data,mesh) - - # set mesh location - object.location = bpy.context.scene.cursor_location - bpy.context.scene.objects.link(object) - - # create mesh from python data - mesh.from_pydata(verts,[],[]) - mesh.update(calc_edges=True) - - bpy.ops.object.select_all(action='SELECT') |