Commit e9d5def
authored
fix(mesh): bug related to degenerated triangle when using smart linking
Reference array is not initialized properly for a degenerated triangle when using smart linking
Smart linking can merge two very close triangle vertices together. For instance a triangle T(a,b,c)
could become T(a,a,c) after smart linking. The UpdateReferences() function do not update the
refs[] array correctly in this case because it overwrites the same ref cell twice and leaves the
second ref cell not initialized because the indexer is updated only at the end of the function.1 parent 8e82854 commit e9d5def
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
| 1179 | + | |
1180 | 1180 | | |
1181 | | - | |
| 1181 | + | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | 1188 | | |
1193 | 1189 | | |
1194 | 1190 | | |
| |||
0 commit comments