cylinder.h 723 B

1234567891011121314151617181920212223242526
  1. #ifndef IGL_CYLINDER_H
  2. #define IGL_CYLINDER_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. // Construct a triangle mesh of a cylinder (without caps)
  8. //
  9. // Inputs:
  10. // axis_devisions number of vertices _around the cylinder_
  11. // height_devisions number of vertices _up the cylinder_
  12. // Outputs:
  13. // V #V by 3 list of mesh vertex positions
  14. // F #F by 3 list of triangle indices into V
  15. //
  16. template <typename DerivedV, typename DerivedF>
  17. IGL_INLINE void cylinder(
  18. const int axis_devisions,
  19. const int height_devisions,
  20. Eigen::PlainObjectBase<DerivedV> & V,
  21. Eigen::PlainObjectBase<DerivedF> & F);
  22. }
  23. #ifndef IGL_STATIC_LIBRARY
  24. # include "cylinder.cpp"
  25. #endif
  26. #endif