Commit c88b6e8
Add mesh copy and unify_cycles before volume calculation
- Create a copy of the mesh to avoid in-place modifications
- Call unify_cycles() on the copy to ensure consistent face orientation
- Deep copy vertices list since volume_polyhedron modifies it in place
- Updated documentation to reflect internal operations
Co-authored-by: Licini <17893605+Licini@users.noreply.github.com>1 parent 504be2a commit c88b6e8
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3900 | 3900 | | |
3901 | 3901 | | |
3902 | 3902 | | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
3903 | 3906 | | |
3904 | 3907 | | |
3905 | 3908 | | |
| |||
3912 | 3915 | | |
3913 | 3916 | | |
3914 | 3917 | | |
3915 | | - | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
3916 | 3928 | | |
3917 | 3929 | | |
3918 | 3930 | | |
| |||
0 commit comments