Skip to content

Commit

Permalink
[BUG] Fixed flipped surface color problem within series in vista plot…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
javoha committed Mar 10, 2020
1 parent 6e2e88f commit c4604ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gempy/plot/vista.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c4604ea

Please sign in to comment.