atlas::interpolation::element::Triag3D class

Triangle structure Implements http://www.scratchapixel.com/lessons/3d-basic-lessons/lesson-9-ray-triangle-intersection/m-ller-trumbore-algorithm

Constructors, destructors, conversion operators

Triag3D(const double* x0, const double* x1, const double* x2)
Triag3D(const PointXYZ& x0, const PointXYZ& x1, const PointXYZ& x2)
Triag3D(const Vector3D& x0, const Vector3D& x1, const Vector3D& x2)

Public functions

auto intersects(const method::Ray& r, double edgeEpsilon = 5*std::numeric_limits<double>::epsilon(), double epsilon = 5*std::numeric_limits<double>::epsilon()) const -> method::Intersect
auto area() const -> double
void print(std::ostream& s) const
auto p(int i) -> const Vector3D&

Friends

auto operator<<(std::ostream& s, const Triag3D& p) -> std::ostream&