Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Loop3D/loopstructural-visualisation
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Dec 18, 2024
2 parents d6aa391 + 47b6a30 commit 7ad8cf2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [0.1.11](https://github.com/Loop3D/loopstructural-visualisation/compare/v0.1.10...v0.1.11) (2024-12-18)


### Bug Fixes

* adding disk option to fault visualisation ([1fd1a9d](https://github.com/Loop3D/loopstructural-visualisation/commit/1fd1a9d3843e1266f4af03d6572558fa65f53527))
* require ls >1.6.4 and add fault ellipsoid ([e71b0ab](https://github.com/Loop3D/loopstructural-visualisation/commit/e71b0abd1b4e242582214c57d485cf2939b90899))
* update bug with trame folder ([edd3188](https://github.com/Loop3D/loopstructural-visualisation/commit/edd318850fc7e97ef4c5e37d43511f9476046324))

## [0.1.10](https://github.com/Loop3D/loopstructural-visualisation/compare/v0.1.9...v0.1.10) (2024-10-23)


Expand Down
8 changes: 4 additions & 4 deletions loopstructuralvisualisation/_3d_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def plot_data(
geom = pv.Disc()
geom = geom.rotate_y(90)
else:
raise ValueError(f"Unknown glyph type {geom}")
raise ValueError(f"Unknown glyph type {geom}")
actors.append(
self.add_mesh(
d.vtk(geom=geom, scale=scale), name=name, **pyvista_kwargs
Expand Down Expand Up @@ -645,14 +645,14 @@ def plot_fault(
else:
volume_name = f'{fault.name}_volume_{name}'
volume = fault.displacementfeature.scalar_field()
volume =volume.vtk().threshold(0.0)
volume = volume.vtk().threshold(0.0)
if geom == "arrow":
geom = pv.Arrow()
elif geom == "disc":
geom = pv.Disc()
geom = geom.rotate_y(90)
geom = geom.rotate_y(90)
else:
raise ValueError(f"Unknown glyph type {geom}")
raise ValueError(f"Unknown glyph type {geom}")
actors.append(self.add_mesh(volume, name=volume_name, **pyvista_kwargs))
if len(actors) == 0:
logger.warning(f"Nothing added to plot for {fault.name}")
Expand Down
2 changes: 1 addition & 1 deletion loopstructuralvisualisation/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.10"
__version__ = "0.1.11"

0 comments on commit 7ad8cf2

Please sign in to comment.