Function acme::Intersection(ray const&, triangle const&, segment&, real)

Function Documentation

bool acme::Intersection(ray const &ray_in, triangle const &triangle_in, segment &segment_out = DUMMY_SEGMENT, real tolerance = EPSILON)

Intersection ray with triangle

WARNING: This function does only support coplanar objects!

Parameters
  • ray_in – Input ray

  • triangle_in – Input triangle

  • segment_out – Output segment

  • tolerance – Tolerance