Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
worbit committed Dec 27, 2019
1 parent a0c2345 commit 645b087
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compas_vol/microstructures/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def frame(self, frame):
@property
def ltype(self):
return self._ltype

@property
def lattice_type(self):
return self.ltype, self.typenames[self.ltype]
Expand Down
2 changes: 1 addition & 1 deletion src/compas_vol/modifications/multishell.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_distance_numpy(self, x, y, z):
sh = MultiShell(u, 1.0, 2.5)

x, y, z = np.ogrid[-15:15:60j, -15:15:60j, -15:15:60j]
dm = sh.get_distance_numpy(x,y,z)
dm = sh.get_distance_numpy(x, y, z)
plt.imshow(dm[:, :, 20], cmap='RdBu') # transpose because numpy indexing is 1)row 2) column instead of x y
plt.show()

Expand Down
1 change: 1 addition & 0 deletions src/compas_vol/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def export_layer(distfield, resolution, level, filename='layerimage.png'):

import numpy as np
from skimage import io
# add support for marching squares > outline

# x, y = np.ogrid[-10:10:resolution+0j, -10:10:resolution+0j]
y, x = np.ogrid[-10:10:resolution*1j, -10:10:resolution*1j]
Expand Down

0 comments on commit 645b087

Please sign in to comment.