@@ -864,16 +864,16 @@ def render(self, **kwargs):
864864
865865 # Plot evaluated points
866866 if plot ['type' ] == 'evalpts' and self .vconf .display_evalpts :
867- grid = np .array (plot ['ptsarr' ][0 ], dtype = self .vconf .dtype )
868- filled = np .array (plot ['ptsarr' ][1 ], dtype = self .vconf .dtype )
867+ faces = np .array (plot ['ptsarr' ][1 ], dtype = self .vconf .dtype )
868+ filled = np .array (plot ['ptsarr' ][2 ], dtype = self .vconf .dtype )
869869 # Find filled voxels
870- grid_filled = np .concatenate (grid [filled == 1.0 ])
870+ faces_filled = np .concatenate (faces [filled == 1.0 ])
871871 # Create a single Poly3DCollection object
872- pc3d = Poly3DCollection (grid_filled , facecolors = plot ['color' ], edgecolors = 'k' )
872+ pc3d = Poly3DCollection (faces_filled , facecolors = plot ['color' ], edgecolors = 'k' )
873873 ax .add_collection3d (pc3d )
874874 # Set axis limits
875- gf_min = np .amin (grid_filled , axis = (0 , 1 ))
876- gf_max = np .amax (grid_filled , axis = (0 , 1 ))
875+ gf_min = np .amin (faces_filled , axis = (0 , 1 ))
876+ gf_max = np .amax (faces_filled , axis = (0 , 1 ))
877877 ax .set_xlim ([gf_min [0 ], gf_max [0 ]])
878878 ax .set_ylim ([gf_min [1 ], gf_max [1 ]])
879879 ax .set_zlim ([gf_min [2 ], gf_max [2 ]])
0 commit comments