diff --git a/gempy/plot/vista.py b/gempy/plot/vista.py index 91270dbcd..80b139fbc 100644 --- a/gempy/plot/vista.py +++ b/gempy/plot/vista.py @@ -217,9 +217,8 @@ def plot_orientations_all(self, **kwargs): return meshes def get_surface(self, fmt: str) -> pv.PolyData: - i = np.where(self.model.surfaces.df.surface == fmt)[0][0] - ver = self.model.solutions.vertices[ - i] # TODO: BUG surfaces within series are flipped in order !!!!!!! + i = self.model.surfaces.df.index[np.where(self.model.surfaces.df.surface == fmt)[0][0]] + ver = self.model.solutions.vertices[i] sim = self._simplices_to_pv_tri_simplices( self.model.solutions.edges[i]