Commit 0e99db93 by Pierre Kraemer

### remove lapack code

parent eaf23de4
 ... ... @@ -81,12 +81,24 @@ void computeCurvatureVertex_QuadraticFitting( vertexQuadraticFitting(map, dart, localFrame, position, normal, a, b, c, d, e) ; REAL kmax_v, kmin_v, Kmax_x, Kmax_y ; //int res = slaev2_(&e, &f, &g, &maxC, &minC, &dirX, &dirY) ; /*int res = */slaev2_(&a, &b, &c, &kmax_v, &kmin_v, &Kmax_x, &Kmax_y) ; // /*int res = */slaev2_(&a, &b, &c, &kmax_v, &kmin_v, &Kmax_x, &Kmax_y) ; VEC3 Kmax_v(Kmax_x, Kmax_y, 0.0f) ; Eigen::Matrix m; m << a, b, b, c; // solve eigen problem Eigen::SelfAdjointEigenSolver > solver(m); const Eigen::Matrix& ev = solver.eigenvalues(); kmax_v = ev[0]; kmin_v = ev[1]; const Eigen::Matrix& evec = solver.eigenvectors(); VEC3 Kmax_v(evec(0,0), evec(1,0), 0.0f) ; Kmax_v = invLocalFrame * Kmax_v ; VEC3 Kmin_v = n ^ Kmax_v ; VEC3 Kmin_v(evec(0,1), evec(1,1), 0.0f) ; Kmin_v = invLocalFrame * Kmin_v ; // VEC3 Kmin_v = n ^ Kmax_v ; if (kmax_v < kmin_v) { ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!