Fix for an unnormalized normal vector in ViewEdgeXBuilder::BuildSmoothFEdge().

This commit is contained in:
Tamito Kajiyama 2012-04-07 15:54:21 +00:00
parent 04a9f393d8
commit 8ea8b6a1ba

@ -492,6 +492,8 @@ FEdge * ViewEdgeXBuilder::BuildSmoothFEdge(FEdge *feprevious, const OWXFaceLayer
fe->setFrsMaterialIndex(ifl.fl->getFace()->frs_materialIndex());
fe->setFace(ifl.fl->getFace());
fe->setFaceMark(ifl.fl->getFace()->GetMark());
if(feprevious == 0)
normal.normalize();
fe->setNormal(normal);
fe->setPreviousEdge(feprevious);
if(feprevious)