Commit 6e1bc67
Replace volume_polyhedron with signed volume approach for non-convex support
- volume_polyhedron only works for convex meshes (as per its documentation)
- Implemented signed volume of tetrahedra approach which works for both convex and non-convex meshes
- Removed volume_polyhedron import, added dot_vectors import
- Updated CHANGELOG.md to document the new volume() method
- All tests pass with same accuracy
Co-authored-by: Licini <17893605+Licini@users.noreply.github.com>1 parent c88b6e8 commit 6e1bc67
2 files changed
+28
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
3920 | 3920 | | |
3921 | 3921 | | |
3922 | 3922 | | |
3923 | | - | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
3927 | 3928 | | |
3928 | | - | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
3929 | 3950 | | |
3930 | 3951 | | |
3931 | 3952 | | |
| |||
0 commit comments