Commit d7e80c8
Add optional parameters and improve tests per review feedback
1. Added copy and unify_cycles parameters (both default to True) for performance optimization
2. Updated tests to use Box instead of STL files with non-unit dimensions (3x4x5, 2x2x2, 2x3x4)
3. All tests now check actual expected volumes with proper math verification
4. Added docstring note about non-convex face triangulation limitations
5. Added test for optional parameters (copy=False, unify_cycles=False)
Co-authored-by: Licini <17893605+Licini@users.noreply.github.com>1 parent 856f48e commit d7e80c8
File tree
2 files changed
+47
-19
lines changed- src/compas/datastructures/mesh
- tests/compas/datastructures
2 files changed
+47
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3883 | 3883 | | |
3884 | 3884 | | |
3885 | 3885 | | |
3886 | | - | |
| 3886 | + | |
3887 | 3887 | | |
3888 | 3888 | | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
3889 | 3898 | | |
3890 | 3899 | | |
3891 | 3900 | | |
| |||
3900 | 3909 | | |
3901 | 3910 | | |
3902 | 3911 | | |
3903 | | - | |
3904 | | - | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
3905 | 3920 | | |
3906 | 3921 | | |
3907 | 3922 | | |
| |||
3916 | 3931 | | |
3917 | 3932 | | |
3918 | 3933 | | |
3919 | | - | |
| 3934 | + | |
| 3935 | + | |
3920 | 3936 | | |
3921 | | - | |
| 3937 | + | |
| 3938 | + | |
3922 | 3939 | | |
3923 | 3940 | | |
3924 | | - | |
| 3941 | + | |
3925 | 3942 | | |
3926 | 3943 | | |
3927 | 3944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
1076 | | - | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1077 | 1078 | | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1083 | 1091 | | |
1084 | 1092 | | |
1085 | 1093 | | |
1086 | 1094 | | |
1087 | 1095 | | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | 1096 | | |
1095 | 1097 | | |
1096 | 1098 | | |
| |||
1104 | 1106 | | |
1105 | 1107 | | |
1106 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1107 | 1118 | | |
1108 | 1119 | | |
1109 | 1120 | | |
| |||
0 commit comments