Skip to content

Commit 0a9d537

Browse files
committed
FIX: Normals
1 parent c8e147b commit 0a9d537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

surfer/viz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,7 @@ def __init__(self, ol, figure):
23912391
kwargs = dict(scalars=ol.mlab_data, figure=figure)
23922392
if ol.pos_lims is not None:
23932393
pos_mesh = mlab.pipeline.triangular_mesh_source(*args, **kwargs)
2394-
pos_mesh.data.point_data.normals = self._geo.nn
2394+
pos_mesh.data.point_data.normals = ol.geo.nn
23952395
pos_mesh.data.cell_data.normals = None
23962396
pos_thresh = mlab.pipeline.threshold(pos_mesh, low=ol.pos_lims[0])
23972397
self.pos = mlab.pipeline.surface(pos_thresh, colormap="YlOrRd",
@@ -2405,7 +2405,7 @@ def __init__(self, ol, figure):
24052405

24062406
if ol.neg_lims is not None:
24072407
neg_mesh = mlab.pipeline.triangular_mesh_source(*args, **kwargs)
2408-
neg_mesh.data.point_data.normals = self._geo.nn
2408+
neg_mesh.data.point_data.normals = ol.geo.nn
24092409
neg_mesh.data.cell_data.normals = None
24102410
neg_thresh = mlab.pipeline.threshold(neg_mesh,
24112411
up=ol.neg_lims[0])

0 commit comments

Comments
 (0)