Skip to content

Massmatrix and Cotmatrix both returning an empty matrix. #242

@NarinderS

Description

@NarinderS

It seems like the massmatrix and cotmatrix functions are always returning an empty matrix, without any errors or warnings. Here is a simple setup:

import igl
print(igl.__version__)
V,F = igl.triangulated_grid(3,3)
M1 = igl.massmatrix(V,F,igl.MASSMATRIX_TYPE_BARYCENTRIC)
M2 = igl.massmatrix(V,F,igl.MASSMATRIX_TYPE_VORONOI)
L = igl.cotmatrix(V,F)
print(M1)
print(M2)
print(L)

Prints:

2.5.1
<Compressed Sparse Column sparse matrix of dtype 'float64'
	with 0 stored elements and shape (9, 9)>
<Compressed Sparse Column sparse matrix of dtype 'float64'
	with 0 stored elements and shape (9, 9)>
<Compressed Sparse Column sparse matrix of dtype 'float64'
	with 0 stored elements and shape (9, 9)>

I ran this on a bare-bones venv, using Python 3.12.7. Pip freeze shows:

libigl==2.5.1
numpy==2.1.2
scipy==1.14.1

And strangely dropping the Python version to 3.11.10 and using libigl==2.4.1 does not help either.
Am I missing some sort of dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions