Skip to content

Commit 97ef2e3

Browse files
author
Teseo Schneider
committed
fixed missing assertion in bary coo
1 parent ec71418 commit 97ef2e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/barycentric_coordinates.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Notes
2929
3030
Examples
3131
--------
32-
32+
3333
)igl_Qu8mg5v7";
3434

3535
npe_function(barycentric_coordinates_tet)
@@ -95,6 +95,13 @@ npe_arg(a, npe_matches(p))
9595
npe_arg(b, npe_matches(p))
9696
npe_arg(c, npe_matches(p))
9797
npe_begin_code()
98+
assert_rows_match(p, a, "p", "a");
99+
assert_rows_match(p, b, "p", "b");
100+
assert_rows_match(p, c, "p", "c");
101+
assert_cols_equals(p, 3, "p");
102+
assert_cols_equals(a, 3, "a");
103+
assert_cols_equals(b, 3, "b");
104+
assert_cols_equals(c, 3, "c");
98105

99106
EigenDenseLike<npe_Matrix_p> l;
100107
igl::barycentric_coordinates(p, a, b, c, l);

0 commit comments

Comments
 (0)