From bff67a4e856f4c9da966695ceae1dfa7e817c2fd Mon Sep 17 00:00:00 2001 From: Daniele Panozzo Date: Sat, 4 Jun 2016 12:28:01 -0400 Subject: [PATCH] fix for clang, enabled embree build by default for python bindings --- include/igl/random_dir.cpp | 12 ++++++------ python/CMakeLists.txt | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/igl/random_dir.cpp b/include/igl/random_dir.cpp index 66d63efcc..f30783418 100644 --- a/include/igl/random_dir.cpp +++ b/include/igl/random_dir.cpp @@ -1,9 +1,9 @@ // This file is part of libigl, a simple c++ geometry processing library. -// +// // Copyright (C) 2013 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 +// +// 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 "random_dir.h" #include @@ -18,14 +18,14 @@ IGL_INLINE Eigen::Vector3d igl::random_dir() double r = sqrt(1.0-z*z); double x = r * cos(t); double y = r * sin(t); - return Vector3d(x,y,z); + return Vector3d(x,y,z); } IGL_INLINE Eigen::MatrixXd igl::random_dir_stratified(const int n) { using namespace Eigen; using namespace std; - const double m = floor(sqrt(double(n))); + const double m = std::floor(sqrt(double(n))); MatrixXd N(n,3); int row = 0; for(int i = 0;i