Fixed GLSurfacePlot bug
This commit is contained in:
parent
551ac7802f
commit
9126b27cad
@ -127,8 +127,8 @@ class GLSurfacePlotItem(GLMeshItem):
|
||||
|
||||
|
||||
def generateFaces(self):
|
||||
cols = self._z.shape[0]-1
|
||||
rows = self._z.shape[1]-1
|
||||
cols = self._z.shape[1]-1
|
||||
rows = self._z.shape[0]-1
|
||||
faces = np.empty((cols*rows*2, 3), dtype=np.uint)
|
||||
rowtemplate1 = np.arange(cols).reshape(cols, 1) + np.array([[0, 1, cols+1]])
|
||||
rowtemplate2 = np.arange(cols).reshape(cols, 1) + np.array([[cols+1, 1, cols+2]])
|
||||
|
Loading…
Reference in New Issue
Block a user