#include "tetrahedralized_grid.h" #include "grid.h" template < typename DerivedGV, typename DerivedGT> IGL_INLINE void igl::tetrahedralized_grid( const int nx, const int ny, const int nz, const TetrahedralizedGripType type, Eigen::PlainObjectBase & GV, Eigen::PlainObjectBase & GT) { Eigen::RowVector3i res(nx,ny,nz); igl::grid(res,GV); return igl::tetrahedralized_grid(GV,res,type,GT); } template < typename Derivedside, typename DerivedGT> IGL_INLINE void igl::tetrahedralized_grid( const Eigen::MatrixBase & side, const TetrahedralizedGripType type, Eigen::PlainObjectBase & GT) { const int nx = side(0); const int ny = side(1); const int nz = side(2); const int m = (nx-1)*(ny-1)*(nz-1); // Rotationally symmetric int nt = -1; switch(type) { default: assert(false); break; case TETRAHEDRALIZED_GRID_TYPE_5: nt = 5; break; case TETRAHEDRALIZED_GRID_TYPE_6_ROTATIONAL: nt = 6; break; } GT.resize(m*nt,4); { int u = 0; for(int i = 0;i, Eigen::Matrix >(Eigen::MatrixBase > const&, igl::TetrahedralizedGripType, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh #endif