danielepanozzo / cg-old

43 stars 16 forks source link

Assignment 1-4 #12

Closed iqranawab closed 8 years ago

iqranawab commented 8 years ago

After storing the data from the mesh in ArrayXXf , when i'm trying to traverse in the same and check if the point is inside the triangle or not. I'm getting an error "Assertion failed: (row >= 0 && row < rows() && col >= 0 && col < cols()), function operator(), file /Users/Iqra/Assignment1/Assignment_1/../ext/eigen/Eigen/src/Core/DenseCoeffsBase.h, line 337."

Any clue as to how to solve this error?

Thanks

danielepanozzo commented 8 years ago

You are accessing an element that is outside the Array. The assertion is telling you that the row[column] index is either negative or larger than the total number of rows [columns].