grid.h 521 B

1234567891011121314151617181920
  1. #ifndef IGL_GRID_H
  2. #define IGL_GRID_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. namespace igl
  6. {
  7. // Construct vertices of a regular grid, suitable for input to
  8. // `igl::marching_cubes`
  9. //
  10. // Inputs:
  11. // res 3-long list of number of vertices along the x y and z dimensions
  12. // Outputs:
  13. // GV res(0)*res(1)*res(2) by 3 list of mesh vertex positions.
  14. //
  15. IGL_INLINE void grid(const Eigen::RowVector3i & res, Eigen::MatrixXd & GV);
  16. }
  17. #ifndef IGL_STATIC_LIBRARY
  18. # include "grid.cpp"
  19. #endif
  20. #endif