#include "UT_SolidAngle.h" #include #include #include #include #include #include int main(int argc, char * argv[]) { Eigen::MatrixXf V,P; Eigen::Matrix F; if(argc != 3+1) { std::cerr< solid_angle; int order = 2; double accuracy_scale = 2.0; std::vector > U(V.rows()); for(int i = 0;iPp; Pp[0] = P(p,0); Pp[1] = P(p,1); Pp[2] = P(p,2); W(p) = solid_angle.computeSolidAngle( Pp, accuracy_scale) / (4.0*M_PI); } ,1000); return igl::writeDMAT(argv[3],W,false); }