-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eyden-tracer-01 (makeup) #7
base: master
Are you sure you want to change the base?
Conversation
@@ -18,7 +18,8 @@ class IPrim | |||
* @brief Constructor | |||
*/ | |||
IPrim(void) = default; | |||
IPrim(const IPrim&) = delete; | |||
// IPrim(const IPrim&) = delete; | |||
IPrim(const IPrim&) = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not modify this file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, professor, but it was giving me an error that function I was referencing does not exist.
@@ -31,7 +31,28 @@ class CPrimTriangle : public IPrim | |||
virtual bool intersect(Ray& ray) const override | |||
{ | |||
// --- PUT YOUR CODE HERE --- | |||
return false; | |||
Vec3f n_ab = (m_b - ray.org).cross(m_a - ray.org); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suspicion for plagiarism
// --- IMPLEMENT class CPrimDisc --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suspicion for plagiarism
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just corrected the typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the whole implementation for disc primitive
@@ -3,5 +3,37 @@ | |||
#include "ICamera.h" | |||
#include "ray.h" | |||
|
|||
// --- IMPLENET class CCameraEnvironmental --- | |||
// --- IMPLEMENT class CCameraEnvironmental --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suspicion for plagiarism
My environmental camera was not implemented correctly, but I did my best.