Skip to content

Commit

Permalink
use inline-python to visualize results
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh committed Nov 16, 2021
1 parent 9513155 commit 845afb9
Show file tree
Hide file tree
Showing 12 changed files with 187 additions and 12,050 deletions.
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
imgui.ini
6 changes: 6 additions & 0 deletions .polyscope.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"windowHeight": 720,
"windowPosX": 20,
"windowPosY": 53,
"windowWidth": 1280
}
99 changes: 99 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "intrinsic-triangles"
version = "0.1.0"
edition = "2018"
edition = "2021"

[lib]
path = "src/lib.rs"
Expand All @@ -13,3 +13,8 @@ ndarray = "0.15"
ndarray-linalg = { version = "0.14", features = ["openblas-system"] }

tobj = "3.2"


# visualization
#pyo3 = {version = "0.15", features = ["auto-initialize"]}
inline-python = "0.7.1"
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

In this repo is code I wrote following along with the [Nicholas Sharp](https://nmwsharp.com/), [Mark Gillespie](https://markjgillespie.com/), [Keenan Crane](http://keenan.is/here)'s [course on geometry processing with intrinsic triangulations](https://www.youtube.com/watch?v=gcRDdYrgOhg). Also check out the [course repo](https://github.com/nmwsharp/intrinsic-triangulations-tutorial), which has more detailed comments.

The binary target of this project generates two files `distance.csv` and `faces.csv`, which I use to visualize the results of the pegasus heat distance using [Polyscope](https://polyscope.run/).
In order to generate the csvs, run:
To visualize the results (requires numpy) and polyscope), run:
```shell
cargo run --release
```
To visualize the results (requires potpourri3d and polyscope), run:
```shell
python visualize.py
```
*note:* on MacOS using `pyenv` this might not run due to using `inline-python`.
Loading

0 comments on commit 845afb9

Please sign in to comment.