You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
// note: this is intentionally missing handling for Kind_Complex; we assume that complex vertices have similar attribute values so just using the primary vertex is fine
1166
+
if (kind == Kind_Seam)
1164
1167
{
1168
+
// seam collapses involve two edges so we need to update attribute quadrics for both target vertices; position quadrics are shared
0 commit comments