21 std::size_t pnt_b, std::size_t pnt_c)
22 : _pnts(pnt_vec), _pnt_ids({{pnt_a, pnt_b, pnt_c}})
24 assert(!_pnts.empty());
25 assert(pnt_a < _pnts.size() && pnt_b < _pnts.size() &&
26 pnt_c < _pnts.size());
Definition of analytical geometry functions.
Definition of the Point class.
bool containsPoint(MathLib::Point3d const &q, double eps=std::numeric_limits< float >::epsilon()) const
Triangle(std::vector< Point * > const &pnt_vec, std::size_t pnt_a, std::size_t pnt_b, std::size_t pnt_c)
std::array< std::size_t, 3 > _pnt_ids
position of pointers to the geometric points
std::vector< Point * > const & _pnts
a vector of pointers to points the triangle is based on
bool isPointInTriangle(MathLib::Point3d const &p, MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, double eps_pnt_out_of_plane, double eps_pnt_out_of_tri, MathLib::TriangleTest algorithm)