Commit 2e071c5
authored
Release: PathSample Fixes + Viridis (#2444)
- try to fix #2438
- release #2441
- release #2449 which makes `viridis` the default color map in
`trimesh.visual.color.interpolate` and enables linear interpolation with
more than two values in `trimesh.visual.color.linear_color_map`. This
adds a 20kb JSON copy of the lookup table for viridis rather than
depending on `matplotlib` to avoid the 50mb of added dependencies. Fixes
#2446
- adds ability to `gzip` files in `trimesh.resources.get_json`. `gzip`
won the decompress-speed benchmark by a fair bit on my machine compared
to `bz2` and `lzma` although it had worse compression.File tree
13 files changed
+615
-359
lines changed- tests
- trimesh
- path
- resources
- visual
13 files changed
+615
-359
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments