Skip to content
Snippets Groups Projects
Commit c4ec98cf authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 186f1f3b
No related branches found
No related tags found
No related merge requests found
...@@ -607,16 +607,14 @@ void BDS_Point :: compute_curvature ( ) ...@@ -607,16 +607,14 @@ void BDS_Point :: compute_curvature ( )
M.least_squares (Ny,Cy); M.least_squares (Ny,Cy);
M.least_squares (Nz,Cz); M.least_squares (Nz,Cz);
const double A[9] = { Cx(0),0.5*(Cx(1)+Cy(0)), 0.5*(Cx(2)+Cz(0)) , // curvature = divergence of n
0.5*(Cx(1)+Cy(0)), Cy(1), 0.5*(Cy(2)+Cz(1)) ,
0.5*(Cx(2)+Cz(0)), 0.5*(Cy(2)+Cz(1)) ,Cz(2)}; double curvature = Cx(0) + Cy(1) + Cz(2);
double v[9];
double wr[3],wi[3];
EigSolve3x3 (A ,wr,wi,v);
if(wr[0]!=0.0)radius_of_curvature = fabs(1/wr[0]); if (curvature != 0.0)
radius_of_curvature = fabs(1/curvature);
else
radius_of_curvature = 1.e22;
// printf(" curvature = %g %g %g R = %g\n",wr[0],wr[1],wr[2],radius_of_curvature); // printf(" curvature = %g %g %g R = %g\n",wr[0],wr[1],wr[2],radius_of_curvature);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment