36 #include <ringmesh/ringmesh_tests_config.h> 40 #include <geogram/basic/vecg.h> 50 void verdict(
bool condition, std::string test_name )
62 template < index_t DIMENSION >
66 return ( vec0 - vec1 ).length2() < global_epsilon_sq;
76 { 2., 2., 2. }, plane ) };
79 { -2., -2., -9. }, plane ) };
84 { 1., 6., -6. }, plane ) };
85 verdict( on_plane_side ==
ZERO,
"True point side on plane" );
96 Logger::out(
"TEST",
"Test intersection algorithms" );
105 catch(
const std::exception& e )
GEO::vecng< DIMENSION, double > vecn
bool are_almost_equal(const vecn< DIMENSION > &vec0, const vecn< DIMENSION > &vec1)
void verdict(bool condition, std::string test_name)
static void err(const std::string &feature, const Args &... args)
static void out(const std::string &feature, const Args &... args)
Sign RINGMESH_API point_side_to_plane(const Geometry::Point3D &point, const Geometry::Plane &plane)
const std::string & category() const
Classes to build GeoModel from various inputs.
void RINGMESH_API default_configure()
void test_point_plane_side()