// Copyright (C) 2018 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "WindingNumber/UT_SolidAngle.h" #include #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); } std::cout<<"Runtime: "<<(igl::get_seconds() - t_before)/MAX_RUNS<<" secs"<