diff --git a/docs/index.rst b/docs/index.rst index e105f44..d1166a9 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -28,6 +28,7 @@ :target: https://discord.gg/tpq7Yuv :alt: Discord +| What is Generative design? -------------------------- diff --git a/visualizer.py b/visualizer.py index bb959ec..ba0c6e2 100644 --- a/visualizer.py +++ b/visualizer.py @@ -91,10 +91,12 @@ def marchthecubes(inp_path, output_path, resolution=100, density_thresh=0.1): data = 0.0 * grid # mask?? - for _index in enumerate(data_indices): + for _index in data_indices: try: data[_index[0]][_index[1]][_index[2]] = 1 - + except: + pass + vertices, faces, normals, _ = measure.marching_cubes(data) vertices = vertices + lower_bound + 0.5 vertices = 10 * vertices/resolution - 5