123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2014 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/.
- #ifndef IGL_CGAL_SIGNED_DISTANCE_ISOSURFACE_H
- #define IGL_CGAL_SIGNED_DISTANCE_ISOSURFACE_H
- #include "../igl_inline.h"
- #include "../signed_distance.h"
- #include <Eigen/Core>
- namespace igl
- {
- namespace cgal
- {
- // SIGNED_DISTANCE_ISOSURFACE Compute the contour of an iso-level of the
- // signed distance field to a given mesh.
- //
- // Inputs:
- // IV #IV by 3 list of input mesh vertex positions
- // IF #IF by 3 list of input triangle indices
- // level iso-level to contour in world coords, negative is inside.
- // angle_bound lower bound on triangle angles (mesh quality) (e.g. 28)
- // radius_bound upper bound on triangle size (mesh density?) (e.g. 0.02)
- // distance_bound cgal mysterious parameter (mesh density?) (e.g. 0.01)
- // sign_type method for computing distance _sign_ (see
- // ../signed_distance.h)
- // Outputs:
- // V #V by 3 list of input mesh vertex positions
- // F #F by 3 list of input triangle indices
- //
- IGL_INLINE bool signed_distance_isosurface(
- const Eigen::MatrixXd & IV,
- const Eigen::MatrixXi & IF,
- const double level,
- const double angle_bound,
- const double radius_bound,
- const double distance_bound,
- const SignedDistanceType sign_type,
- Eigen::MatrixXd & V,
- Eigen::MatrixXi & F);
- }
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "signed_distance_isosurface.cpp"
- #endif
- #endif
|