MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / evalQSum

Function evalQSum

js/decimation.js:563–565  ·  view source on GitHub ↗
(q, v1, v2, x, y, z)

Source from the content-addressed store, hash-verified

561 const d = -(px*positions[va*3] + py*positions[va*3+1] + pz*positions[va*3+2]);
562 // Scale by sqrtW: addPlaneQ accumulates (a²,ab,…) so scaling inputs by √w yields w×(a²,ab,…)
563 addPlaneQ(quadrics, va, px*sqrtW, py*sqrtW, pz*sqrtW, d*sqrtW);
564 addPlaneQ(quadrics, vb, px*sqrtW, py*sqrtW, pz*sqrtW, d*sqrtW);
565 }
566 }
567}
568

Callers 1

pushEdgeFunction · 0.85

Calls 1

evalQFunction · 0.85

Tested by

no test coverage detected