icosahedron.h 552 B

1234567891011121314151617181920212223
  1. #ifndef IGL_ICOSAHEDRON_H
  2. #define IGL_ICOSAHEDRON_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. /// Construct a icosahedron with radius 1 centered at the origin
  8. ///
  9. /// @param[out] V #V by 3 list of vertex positions
  10. /// @param[out] F #F by 3 list of triangle indices into rows of V
  11. template <typename DerivedV, typename DerivedF>
  12. IGL_INLINE void icosahedron(
  13. Eigen::PlainObjectBase<DerivedV> & V,
  14. Eigen::PlainObjectBase<DerivedF> & F);
  15. }
  16. #ifndef IGL_STATIC_LIBRARY
  17. # include "icosahedron.cpp"
  18. #endif
  19. #endif