Commit dbf5bcdd authored by lvs's avatar lvs
Browse files

modified infinitesimal radian to 1e-3

parent d472d875
......@@ -77,7 +77,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Gradient-related defines
// -------------------------------------------
#define INFINITESIMAL_RADIAN 1E-5
#define INFINITESIMAL_RADIAN 1E-3
#define HALF_INFINITESIMAL_RADIAN (0.5f * INFINITESIMAL_RADIAN)
#define INV_INFINITESIMAL_RADIAN (1/INFINITESIMAL_RADIAN)
#define COS_HALF_INFINITESIMAL_RADIAN cos(HALF_INFINITESIMAL_RADIAN)
......
......@@ -975,6 +975,8 @@ void gpu_calc_gradient(
#endif
printf("\n%s\n", "----------------------------------------------------------");
printf("%-20s %-10.6f\n", "INFINITESIMAL_RADIAN: ", INFINITESIMAL_RADIAN);
printf("%-20s %-10.6f %-10.6f %-10.6f %-10.6f\n", "quat_torque (w,x,y,z): ", quat_torque.w, quat_torque.x, quat_torque.y, quat_torque.z);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment