triangle_fan.h 653 B

1234567891011121314151617181920212223
  1. #ifndef IGL_TRIANGLE_FAN_H
  2. #define IGL_TRIANGLE_FAN_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // Given a list of faces tesselate all of the "exterior" edges forming another
  8. // list of
  9. //
  10. // Inputs:
  11. // E #E by simplex_size-1 list of exterior edges (see exterior_edges.h)
  12. // Outputs:
  13. // cap #cap by simplex_size list of "faces" tessleating the boundary edges
  14. IGL_INLINE void triangle_fan(
  15. const Eigen::MatrixXi & E,
  16. Eigen::MatrixXi & cap);
  17. // In-line version
  18. IGL_INLINE Eigen::MatrixXi triangle_fan( const Eigen::MatrixXi & E);
  19. }
  20. #ifdef IGL_HEADER_ONLY
  21. # include "triangle_fan.h"
  22. #endif
  23. #endif