Commit b2e38628 authored by Will Schroeder's avatar Will Schroeder
Browse files

*** empty log message ***

parent 5615349d
......@@ -142,12 +142,14 @@ void vlImplicitBoolean::EvaluateNormal(float x, float y, float z, float n[3])
else //difference
{
float nTemp[3];
vlImplicitFunction *firstF;
this->FunctionList.InitTraversal();
if ( (firstF = this->FunctionList.GetNextItem()) != NULL )
{
value = firstF->Evaluate(x,y,z);
firstF->EvaluateNormal(x,y,z,n);
firstF->EvaluateNormal(x,y,z,nTemp);
n[0] = -1.0*nTemp[0]; n[1] = -1.0*nTemp[1]; n[2] = -1.0*nTemp[2];
}
for (this->FunctionList.InitTraversal();
......@@ -158,7 +160,8 @@ void vlImplicitBoolean::EvaluateNormal(float x, float y, float z, float n[3])
if ( (v=(-1.0)*f->Evaluate(x,y,z)) > value )
{
value = v;
f->EvaluateNormal(x,y,z,n);
f->EvaluateNormal(x,y,z,nTemp);
n[0] = -1.0*nTemp[0]; n[1] = -1.0*nTemp[1]; n[2] = -1.0*nTemp[2];
}
}
}
......
Supports Markdown
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