Download vendor/libigl/include/igl/copyleft/progressive_hulls.cpp from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 901 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/include/igl/copyleft/progressive_hulls.cpp
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/include/igl/copyleft/progressive_hulls.cpp
-
curl -L -o progressive_hulls.cpp https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/include/igl/copyleft/progressive_hulls.cpp
901 Bytes
| // This file is part of libigl, a simple c++ geometry processing library. | |
| // | |
| // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com> | |
| // | |
| // 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/. | |
| IGL_INLINE bool igl::copyleft::progressive_hulls( | |
| const Eigen::MatrixXd & V, | |
| const Eigen::MatrixXi & F, | |
| const size_t max_m, | |
| Eigen::MatrixXd & U, | |
| Eigen::MatrixXi & G, | |
| Eigen::VectorXi & J) | |
| { | |
| int m = F.rows(); | |
| Eigen::VectorXi I; | |
| return decimate( | |
| V, | |
| F, | |
| progressive_hulls_cost_and_placement, | |
| max_faces_stopping_condition(m,(const int)m,max_m), | |
| U, | |
| G, | |
| J, | |
| I); | |
| } | |