Menu

GenFaceNormalsProcess bug..

2009-08-05
2013-06-03
  • Neil Richardson

    Neil Richardson - 2009-08-05

    Hey, I've just ran the gen normals post process, and it's returned me some non-normal normals (of all things!). I had a quick look to see if I could spot why, and I believe the bug may be on line 132 of GenFaceNormalsProcess.cpp:

    aiVector3D vNor = (*pV2 - *pV1) ^ (*pV3 - *pV1).Normalize();

    Should that line not be:

    aiVector3D vNor = (*pV2 - *pV1).Normalize() ^ (*pV3 - *pV1).Normalize();

    Cheers,

     
    • Alexander Gessler

      Should be fixed now ..

      Thanks for reporting!
      - Alex

       

Log in to post a comment.