Commit 8d13b7ce authored by Ken Martin's avatar Ken Martin
Browse files

now uses negative of gradient as normal

parent bb7a7c15
......@@ -174,6 +174,9 @@ void vtkSampleFunction::Execute()
{
p = output->GetPoint(ptId);
this->ImplicitFunction->FunctionGradient(p, n);
n[0] *= -1;
n[1] *= -1;
n[2] *= -1;
vtkMath::Normalize(n);
newNormals->SetNormal(ptId,n);
}
......
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