Skip to content

Commit

Permalink
issue #16 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed May 17, 2020
1 parent 7c519a0 commit d5abc98
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/core/curve_asphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,18 @@ namespace goptical {
math::Vector3 normal (0, 0, 0);
bool ok = compute_intersection (ray.origin(), ray.direction(), this, point, normal);
// normal.normalize();
if (ok && count % 25 == 0)
{
printf ("{ %.16f, %.16f", this->_r, this->_k);
printf (", %.16f, %.16f, %.16f, %.16f, %.16f, %.16f", this->_A4,
this->_A6, this->_A8, this->_A10, this->_A12, this->_A14);
printf (", %.16f, %.16f, %.16f", ray.origin ().x (),
ray.origin ().y (), ray.origin ().z ());
printf (", %.16f, %.16f, %.16f", ray.direction ().x (),
ray.direction ().y (), ray.direction ().z ());
printf (", %.16f, %.16f, %.16f },\n", point.x (), point.y (),
point.z ());
}
// if (ok && count % 25 == 0)
// {
// printf ("{ %.16f, %.16f", this->_r, this->_k);
// printf (", %.16f, %.16f, %.16f, %.16f, %.16f, %.16f", this->_A4,
// this->_A6, this->_A8, this->_A10, this->_A12, this->_A14);
// printf (", %.16f, %.16f, %.16f", ray.origin ().x (),
// ray.origin ().y (), ray.origin ().z ());
// printf (", %.16f, %.16f, %.16f", ray.direction ().x (),
// ray.direction ().y (), ray.direction ().z ());
// printf (", %.16f, %.16f, %.16f },\n", point.x (), point.y (),
// point.z ());
// }
return ok;
}
else
Expand Down

0 comments on commit d5abc98

Please sign in to comment.