// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
meanN[0] = meanNormal[0];
meanN[1] = meanNormal[1];
meanN[2] = meanNormal[2];
meanN[0] = meanNormal[0];
meanN[1] = meanNormal[1];
meanN[2] = meanNormal[2];
pValue = dataarray->GetTuple3( i );
ang = vtkMath::AngleBetweenVectors( pValue, meanN );
pValue = dataarray->GetTuple3( i );
ang = vtkMath::AngleBetweenVectors( pValue, meanN );
wxyz[1] = crossResult[0];
wxyz[2] = crossResult[1];
wxyz[3] = crossResult[2];
wxyz[1] = crossResult[0];
wxyz[2] = crossResult[1];
wxyz[3] = crossResult[2];
vtkMath::RotateVectorByWXYZ(meanN, wxyz ,meanNormalresult);
dataarray->SetTuple3( i , meanNormalresult[0], meanNormalresult[1], meanNormalresult[2] );
} // for
vtkMath::RotateVectorByWXYZ(meanN, wxyz ,meanNormalresult);
dataarray->SetTuple3( i , meanNormalresult[0], meanNormalresult[1], meanNormalresult[2] );
} // for