#ifndef SSP_QSLIM_H #define SSP_QSLIM_H #include #include #include #include // #include #include // #include #include #include #include #include // #include #include #include #include #include #include #include #include #include // Modified from libigl "qslim", see "SSP_decimate" for more info // SSP_decimate (simplify) a triangle mesh using qslim, while storing information required for SSP // // Inputs: // V #V by dim list of vertex positions. Assumes that vertices with // infinite coordinates are "points at infinity" being used to close up // boundary edges with faces. This allows special subspace quadrice for // boundary edges: There should never be more than one "point at // infinity" in a single triangle. // F #F by 3 list of triangle indices into V // max_m desired number of output faces // Outputs: // U #U by dim list of output vertex posistions (can be same ref as V) // G #G by 3 list of output face indices into U (can be same ref as F) // J #G list of indices into F of birth face // I #U list of indices into V of birth vertices bool SSP_qslim( const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, const size_t max_m, Eigen::MatrixXd & U, Eigen::MatrixXi & G, Eigen::VectorXi & J, Eigen::VectorXi & I, std::vector & decInfo, std::vector> & decIM, Eigen::VectorXi & FIM); #endif