mirror of https://github.com/CGAL/cgal
bug fix
This commit is contained in:
parent
4e6293d940
commit
d336746cd1
|
|
@ -514,6 +514,9 @@ namespace Heat_method_3 {
|
|||
}
|
||||
int m = static_cast<int>(num_vertices(tm));
|
||||
dimension = m;
|
||||
|
||||
m_mass_matrix.eigen_object().resize(m,m);
|
||||
m_cotan_matrix.eigen_object().resize(m,m);
|
||||
CGAL::Vertex_around_face_iterator<TriangleMesh> vbegin, vend, vmiddle;
|
||||
//Go through each face on the mesh
|
||||
{
|
||||
|
|
|
|||
|
|
@ -264,6 +264,19 @@ public:
|
|||
return m_matrix;
|
||||
}
|
||||
|
||||
/// Return the internal matrix, with type `EigenType`.
|
||||
EigenType& eigen_object()
|
||||
{
|
||||
if(!m_is_already_built)
|
||||
assemble_matrix();
|
||||
|
||||
// turns the matrix into compressed mode:
|
||||
// -> release some memory
|
||||
// -> required for some external solvers
|
||||
m_matrix.makeCompressed();
|
||||
return m_matrix;
|
||||
}
|
||||
|
||||
private:
|
||||
/// Eigen_sparse_matrix cannot be copied (yet)
|
||||
Eigen_sparse_matrix(const Eigen_sparse_matrix& rhs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue