// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2015 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 "piecewise_constant_winding_number.h" #include "../../piecewise_constant_winding_number.h" #include "remesh_self_intersections.h" #include #include template < typename DerivedV, typename DerivedF> IGL_INLINE bool igl::copyleft::cgal::piecewise_constant_winding_number( const Eigen::PlainObjectBase & V, const Eigen::PlainObjectBase & F) { Eigen::Matrix VV; Eigen::Matrix FF; Eigen::Matrix IF; Eigen::Matrix J; Eigen::Matrix UIM,IM; // resolve intersections remesh_self_intersections(V,F,{false,false,true},VV,FF,IF,J,IM); return igl::piecewise_constant_winding_number(FF); }