0_0_16972633_5035.cpp: In function 'int sign(double)':
0_0_16972633_5035.cpp:13:14: error: 'EPS' was not declared in this scope
return a < -EPS ? -1 : a > EPS;
^
0_0_16972633_5035.cpp: In member function 'void Point3::addNoise()':
0_0_16972633_5035.cpp:46:80: error: return-statement with a value, in function returning 'void' [-fpermissive]
void addNoise() { return Point3(x + randEps(), y + randEps(), z + randEps()); }
^
0_0_16972633_5035.cpp: In function 'double calcDis(Point3*, Point3, Plane)':
0_0_16972633_5035.cpp:119:48: error: 'Dot' was not declared in this scope
return fabs(Dot(pp - p[f.v[0]], f.normal(p))) / f.normal(p).len();
^
0_0_16972633_5035.cpp:119:65: error: 'struct Point3' has no member named 'len'
return fabs(Dot(pp - p[f.v[0]], f.normal(p))) / f.normal(p).len();
^
0_0_16972633_5035.cpp: In function 'int main()':
0_0_16972633_5035.cpp:148:33: error: 'addNoise' was not declared in this scope
p[i] = addNoise(p[i]);
^
|