signed_distance_isosurface.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_SIGNED_DISTANCE_ISOSURFACE_H
  9. #define IGL_SIGNED_DISTANCE_ISOSURFACE_H
  10. #include <igl/igl_inline.h>
  11. #include "signed_distance.h"
  12. #include <Eigen/Core>
  13. namespace igl
  14. {
  15. // Inputs:
  16. // IV #IV by 3 list of input mesh vertex positions
  17. // IF #IF by 3 list of input triangle indices
  18. // level iso-level to contour (e.g. 0)
  19. // angle_bound lower bound on triangle angles (mesh quality) (e.g. 28)
  20. // radius_bound upper bound on triangle size (mesh density?) (e.g. 0.02)
  21. // distance_bound cgal mysterious parameter (mesh density?) (e.g. 0.01)
  22. // sign_type method for computing distance _sign_ (see signed_distance.h)
  23. // Outputs:
  24. // V #V by 3 list of input mesh vertex positions
  25. // F #F by 3 list of input triangle indices
  26. //
  27. IGL_INLINE bool signed_distance_isosurface(
  28. const Eigen::MatrixXd & IV,
  29. const Eigen::MatrixXi & IF,
  30. const double level,
  31. const double angle_bound,
  32. const double radius_bound,
  33. const double distance_bound,
  34. const SignedDistanceType sign_type,
  35. Eigen::MatrixXd & V,
  36. Eigen::MatrixXi & F);
  37. }
  38. #ifndef IGL_STATIC_LIBRARY
  39. # include "signed_distance_isosurface.cpp"
  40. #endif
  41. #endif