// Utils.h: interface for the Utils class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_UTILS_H__BBCD6255_B34B_4209_B23D_AD3F2FC32E9D__INCLUDED_) #define AFX_UTILS_H__BBCD6255_B34B_4209_B23D_AD3F2FC32E9D__INCLUDED_ #include #include "mathlib/mathlib.h" class Utils { public: static void Test_all(); static void Test_fail(); static void Test_plane_ray_intx(); static Point intersect_ray_with_plane(const Plane &p, const Point &start, const Point &thru); static void Assert(bool result, const char *fmt, ...); static void Assert(bool result) { Assert(result, ""); } static void shout( const char *fmt, ... ); static Point octnode_corner_pt( const Point &c000, double edgelength, int x, int y, int z); static bool points_approx_equal(const Point &a, const Point &b, double epsilon = 1e-6); static bool approx_equals(double a, double b, double epsilon = 1e-6); static double abs_d(double num); static char* STL_to_ADF_filename(char* stlFilename, float tolerance, int subdivLevel, bool using_sphere_tree = false); Utils(); virtual ~Utils(); }; #endif // !defined(AFX_UTILS_H__BBCD6255_B34B_4209_B23D_AD3F2FC32E9D__INCLUDED_)