Skip to content

Commit 446ecaf

Browse files
committed
tests; fix doc; bump libigl
1 parent 1b52e2c commit 446ecaf

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ option(LIBIGL_RESTRICTED_TRIANGLE "Build target igl_restricted::triangle" ON)
4949
FetchContent_Declare(
5050
libigl
5151
GIT_REPOSITORY https://github.com/libigl/libigl.git
52-
GIT_TAG 788871103938ce92112714d11ea491e8e6b4d972
52+
GIT_TAG v2.6.0
5353
)
5454
FetchContent_MakeAvailable(libigl)
5555

src/internal_angles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void bind_internal_angles(nb::module_ &m)
2525
"F"_a,
2626
R"(Compute internal angles for all tets of a given tet mesh (V,T).
2727
@param[in] V #V by dim eigen Matrix of mesh vertex nD positions
28-
@param[in] T #F by poly-size eigen Matrix of face (triangle) indices
28+
@param[in] F #F by poly-size eigen Matrix of face (triangle) indices
2929
@param[out] K #F by poly-size eigen Matrix of internal angles
3030
for triangles, columns correspond to edges [1,2],[2,0],[0,1])");
3131
}

tests/test_all.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ def test_boundary_loop():
313313
F = F[1:-1,:]
314314
L_all = igl.boundary_loop_all(F)
315315
L = igl.boundary_loop(F)
316+
UV = igl.map_vertices_to_circle(V,L)
316317

317318
def test_voxel():
318319
V,_,_ = single_tet()
@@ -538,6 +539,7 @@ def test_misc():
538539
BV,BF = igl.bounding_box(V,pad=1.0)
539540
R,C,B = igl.circumradius(V,F)
540541
R = igl.inradius(V,F)
542+
K = igl.internal_angles(V,F)
541543
_,E,EMAP,_,_ = igl.unique_edge_map(F)
542544
L = igl.crouzeix_raviart_cotmatrix(V,F,E,EMAP)
543545
M = igl.crouzeix_raviart_massmatrix(V,F,E,EMAP)
@@ -549,5 +551,8 @@ def test_misc():
549551
L = igl.edge_lengths(V,T)
550552
A = igl.face_areas(V,T)
551553
theta, cos_theta = igl.dihedral_angles_intrinsic(L,A)
554+
D = igl.all_pairs_distances(V,V,squared=False)
555+
D = igl.all_pairs_distances(V,V,squared=True)
556+
552557

553558

0 commit comments

Comments
 (0)