53 const Eigen::RowVector3d &kernel,
const int order,
Quadrature &quadr)
55 std::string flags =
"Qpq2.0";
57 Eigen::MatrixXd VV, OV, TV;
58 Eigen::MatrixXi OF, TF, tets;
67 const long offset = tet_quadr_pts.
weights.rows();
68 quadr.
points.resize(tets.rows() * offset, 3);
69 quadr.
weights.resize(tets.rows() * offset, 1);
71 Eigen::MatrixXd transformed_points;
73 for (
long i = 0; i < tets.rows(); ++i)
75 Eigen::Matrix<double, 4, 3> tetra;
76 const auto &indices = tets.row(i);
77 tetra.row(0) = TV.row(indices(0));
78 tetra.row(1) = TV.row(indices(1));
79 tetra.row(2) = TV.row(indices(2));
80 tetra.row(3) = TV.row(indices(3));
86 const double det = transform_pts(tetra, tet_quadr_pts.
points, transformed_points);
89 quadr.
points.block(i * offset, 0, transformed_points.rows(), transformed_points.cols()) = transformed_points;
static void get_quadrature(const Eigen::MatrixXd &V, const Eigen::MatrixXi &F, const Eigen::RowVector3d &kernel, const int order, Quadrature &quadr)
Gets the quadrature points & weights for a polyhedron.
void tertrahedralize_star_shaped_surface(const Eigen::MatrixXd &V, const Eigen::MatrixXi &F, const Eigen::RowVector3d &kernel, Eigen::MatrixXd &OV, Eigen::MatrixXi &OF, Eigen::MatrixXi &OT)
Tetrahedralize a star-shaped mesh, with a given point in its kernel.