From d0f19b8bc7ab11449cea028106504cacecd94f66 Mon Sep 17 00:00:00 2001 From: hanemile Date: Mon, 19 Mar 2018 20:47:13 +0100 Subject: cleaned up --- src/python/view.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/python/view.py (limited to 'src/python/view.py') 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') -- cgit 1.4.1