Commit e42624d
committed
simplify: Minor refactoring of performEdgeCollapses
To avoid mistakes, extract kind into a variable (we're only concerned
with source vertex kind for classification since that's what determines
the wedges we need to remap), and also add a few comments.
Notably, we probably don't need to worry about attribute quadrics for
complex vertices long term; the intention for complex classification has
been to treat vertices with attributes that are similar enough as one,
so this probably can function similarly to ranking where we're okay with
ignoring the topology somewhat.
Also, while we're here, adjust complex collapses to collapse to i1, not
r1. This code is not used right now but collapsing to r1 feels slightly
wrong since in some cases we'd be collapsing to a vertex that was never
connected to any wedge in the complex.1 parent 5229595 commit e42624d
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
| 1131 | + | |
| 1132 | + | |
1131 | 1133 | | |
1132 | 1134 | | |
1133 | 1135 | | |
| |||
1160 | 1162 | | |
1161 | 1163 | | |
1162 | 1164 | | |
1163 | | - | |
| 1165 | + | |
| 1166 | + | |
1164 | 1167 | | |
| 1168 | + | |
1165 | 1169 | | |
1166 | 1170 | | |
1167 | 1171 | | |
1168 | 1172 | | |
1169 | 1173 | | |
1170 | 1174 | | |
1171 | 1175 | | |
1172 | | - | |
| 1176 | + | |
1173 | 1177 | | |
| 1178 | + | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | 1181 | | |
1177 | 1182 | | |
1178 | | - | |
| 1183 | + | |
1179 | 1184 | | |
1180 | 1185 | | |
1181 | 1186 | | |
1182 | | - | |
| 1187 | + | |
1183 | 1188 | | |
1184 | 1189 | | |
1185 | 1190 | | |
| |||
1200 | 1205 | | |
1201 | 1206 | | |
1202 | 1207 | | |
1203 | | - | |
| 1208 | + | |
1204 | 1209 | | |
1205 | 1210 | | |
1206 | 1211 | | |
| |||
0 commit comments