You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
745 B
24 lines
745 B
#include "quad_edges.h"
|
|
#include "unique_simplices.h"
|
|
|
|
template <
|
|
typename DerivedQ,
|
|
typename DerivedE >
|
|
IGL_INLINE void igl::quad_edges(
|
|
const Eigen::MatrixBase<DerivedQ> & Q,
|
|
Eigen::PlainObjectBase<DerivedE> & E)
|
|
{
|
|
E.resize(4*Q.rows(),2);
|
|
E <<
|
|
Q.col(0), Q.col(1),
|
|
Q.col(1), Q.col(2),
|
|
Q.col(2), Q.col(3),
|
|
Q.col(3), Q.col(0);
|
|
igl::unique_simplices(Eigen::MatrixXi(E),E);
|
|
}
|
|
|
|
#ifdef IGL_STATIC_LIBRARY
|
|
// Explicit template instantiation
|
|
// generated by autoexplicit.sh
|
|
template void igl::quad_edges<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
|
|
#endif
|
|
|