Decimater/Subdivider seem not compatible with Eigen-bases meshes
For example
template<class MeshT>
float ModEdgeLengthT<MeshT>::collapse_priority(const CollapseInfo& _ci) {
typename Mesh::Scalar sqr_length = (_ci.p0 - _ci.p1).sqrnorm();
return ( (sqr_length <= sqr_edge_length_) ? sqr_length : float(Base::ILLEGAL_COLLAPSE));
}
Calls .sqrnorm()
which is not available, whereas Core/GeometryEigenVectorT.hh
provides those function in the Eigen
namespace (for argument-dependent lookup?).
Should that line be sqrnorm(_ci.p0 - _ci.p1)
?