Skip to content

Commit

Permalink
feat(pyvista): add pyvista (#13488)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed Dec 29, 2023
1 parent 2941b6e commit 6cb92b3
Show file tree
Hide file tree
Showing 7 changed files with 837 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/.static-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.greet
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.ingest-data
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.print-platform
poetry run poe static-type-check-python -- --package=hm-pyvista.mount-st-helens
poetry run poe static-type-check-python -- --package=hm-rasa
poetry run poe static-type-check-python -- --package=hm-ray.applications.greet
poetry run poe static-type-check-python -- --package=hm-serial
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ static-type-check-python:
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.greet
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.ingest-data
poetry run poe static-type-check-python -- --package=hm-prefect.workflows.print-platform
poetry run poe static-type-check-python -- --package=hm-pyvista.mount-st-helens
poetry run poe static-type-check-python -- --package=hm-rasa
poetry run poe static-type-check-python -- --package=hm-ray.applications.greet
poetry run poe static-type-check-python -- --package=hm-serial
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,12 @@ make kubernetes-clean

## Computer Vision

- **Open3D** - 3D data processing
- **OpenCV** - Computer vision library
- **supervision** - Computer vision library
- **Ultralytics YOLOv8** - Object detection model
- **Open3D** - 3D data processing
- **PyVista** - 3D plotting and mesh analysis
- **Visualization Toolkit (VTK)** - Image processing, 3D graphics, volume rendering and visualization

## Cloud Native

Expand Down Expand Up @@ -680,6 +682,10 @@ The VHDL waveforms are displayed in GTKWave.

## Computer Vision

### PyVista

![PyVista screenshot](https://github.com/hongbo-miao/hongbomiao.com/assets/3375461/705509be-4272-4d56-8080-9d91123c56ba)

### Open3D

![Open3D screenshot](https://github.com/hongbo-miao/hongbomiao.com/assets/3375461/f4c6dca1-b0c1-4370-9c78-bef12bc70218)
Expand Down
9 changes: 9 additions & 0 deletions hm-pyvista/mount-st-helens/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
poetry-env-use:
poetry env use python3.12
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
poetry install --no-root

poetry-run-dev:
poetry run poe dev
786 changes: 786 additions & 0 deletions hm-pyvista/mount-st-helens/poetry.lock

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions hm-pyvista/mount-st-helens/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tool.poetry]
name = "hm-pyvista-mount-st-helens"
version = "1.0.0"
description = ""
authors = ["Hongbo Miao"]

[tool.poetry.dependencies]
python = "3.12.x"
pyvista = "0.43.1"

[tool.poetry.group.dev.dependencies]
poethepoet = "0.24.4"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poe.tasks]
dev = "python src/main.py"
14 changes: 14 additions & 0 deletions hm-pyvista/mount-st-helens/src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pyvista as pv


def main() -> None:
mesh = pv.examples.download_st_helens().warp_by_scalar()
pv.set_plot_theme("document")
p = pv.Plotter()
p.add_mesh(mesh)
p.add_bounding_box()
p.show()


if __name__ == "__main__":
main()

0 comments on commit 6cb92b3

Please sign in to comment.