2 #ifndef GEODESIC_CONSTANTS_20071231
3 #define GEODESIC_CONSTANTS_20071231
15 #define M_PI 3.14159265358979323846
35 double result = (b*b + c*c - a*a)/(2.0*b*c);
47 template<
class Po
ints,
class Faces>
52 std::ifstream file(filename);
53 assert(file.is_open());
54 if(!file.is_open())
return false;
58 assert(num_points>=3);
63 points.resize(num_points*3);
64 for(
typename Points::iterator i=points.begin(); i!=points.end(); ++i)
69 faces.resize(num_faces*3);
70 for(
typename Faces::iterator i=faces.begin(); i!=faces.end(); ++i)
float min(float x, float y)
float max(float x, float y)
double angle_from_edges(double const a, double const b, double const c)
double const GEODESIC_INF
double const SMALLEST_INTERVAL_RATIO
bool read_mesh_from_file(char *filename, Points &points, Faces &faces)
double cos_from_edges(double const a, double const b, double const c)