Commit cc551eba authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Skipping the wasteful and unnecessary inverse sin computation.

Change-Id: Id5e29b59be431cc393295e27b896f9be756bc18d
parent 409086cf
......@@ -208,8 +208,7 @@ int vtkPolyLine::GenerateSlidingNormals(vtkPoints *pts, vtkCellArray *lines,
//compute rotation of line segment
vtkMath::Cross (sNext, sPrev, q);
double theta=asin(static_cast<double>(vtkMath::Normalize(q)));
if (theta==0.0)
if(vtkMath::Normalize(q) == 0.0)
{ //no rotation, use previous normal
normals->InsertTuple(linePts[j],normal);
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment