andreasala98 / NM4PIG

Numerical Methods for Photorealistic Image Generation
MIT License
2 stars 1 forks source link

Bug in computing the Normal to a Box and a cone #21

Closed TommasoArmadillo closed 3 years ago

TommasoArmadillo commented 3 years ago

I found a bug in the computation of the Normal to a box and a cone which led to this kind of images (see the lateral faces of the cube)

errImage

the bug was due to a bad copy and paste of the code from the normal of the sphere. The bug has been fixed in this PR #22