Skip to content

Commit 0a6d82d

Browse files
committed
touch up changed prototypes; bump libigl
1 parent e030039 commit 0a6d82d

5 files changed

Lines changed: 33 additions & 25 deletions

File tree

cmake/PyiglDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include(FetchContent)
1919
FetchContent_Declare(
2020
libigl
2121
GIT_REPOSITORY https://github.com/libigl/libigl.git
22-
GIT_TAG d7954041d1f21501e3d4776464a59d0251dde184
22+
GIT_TAG 5779714a5bdd62e105a96edfa73d0d3755e33bc8
2323
)
2424
FetchContent_GetProperties(libigl)
2525
FetchContent_MakeAvailable(libigl)

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ def build_extension(self, ext):
111111
os.makedirs(self.build_temp)
112112
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
113113

114+
# print build_args
115+
print("********************************************************************")
116+
print("********************************************************************")
117+
print("********************************************************************")
118+
print("********************************************************************")
119+
print("build_args:", build_args)
120+
print("********************************************************************")
121+
print("********************************************************************")
122+
print("********************************************************************")
123+
print("********************************************************************")
114124
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
115125

116126
print() # Add an empty line for cleaner output

src/is_irregular_vertex.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Determine if a vertex is irregular, i.e. it has more than 6 (triangles) or 4 (qu
1616
1717
Parameters
1818
----------
19-
v : #v by dim array of vertex positions
2019
f : #f by 3[4] array of triangle[quads] indices
2120
2221
Returns
@@ -39,12 +38,10 @@ Examples
3938
npe_function(is_irregular_vertex)
4039
npe_doc(ds_is_irregular_vertex)
4140

42-
npe_arg(v, dense_float, dense_double)
4341
npe_arg(f, dense_int, dense_long, dense_longlong)
4442

4543
npe_begin_code()
46-
assert_valid_tet_or_tri_mesh_23d(v, f);
47-
const std::vector<bool> res = igl::is_irregular_vertex(v, f);
44+
const std::vector<bool> res = igl::is_irregular_vertex(f);
4845
return res;
4946

5047
npe_end_code()

src/isolines.cpp

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ const char *ds_isolines = R"igl_Qu8mg5v7(
1717
1818
Parameters
1919
----------
20-
V #V by dim list of mesh vertex positions
21-
F #F by 3 list of mesh faces (must be triangles)
22-
z #V by 1 list of function values evaluated at vertices
23-
n the number of desired isolines
20+
V #V by dim list of mesh vertex positions
21+
F #F by 3 list of mesh triangle indices into V
22+
S #S by 1 list of per-vertex scalar values
23+
vals #vals by 1 list of values to compute isolines for
2424
2525
Returns
2626
-------
27-
isoV #isoV by dim list of isoline vertex positions
28-
isoE #isoE by 2 list of isoline edge positions
27+
iV #iV by dim list of isoline vertex positions
28+
iE #iE by 2 list of edge indices into iV
29+
I #iE by 1 list of indices into vals indicating which value
2930
3031
See also
3132
--------
@@ -44,21 +45,23 @@ Examples
4445
npe_function(isolines)
4546
npe_doc(ds_isolines)
4647

47-
npe_arg(v, dense_float, dense_double)
48-
npe_arg(f, dense_int, dense_long, dense_longlong)
49-
npe_arg(z, dense_float, dense_double)
50-
npe_arg(n, int)
48+
npe_arg(V, dense_float, dense_double)
49+
npe_arg(F, dense_int, dense_long, dense_longlong)
50+
npe_arg(S, npe_matches(V))
51+
npe_arg(vals, npe_matches(S))
5152

5253

5354
npe_begin_code()
5455

55-
assert_valid_23d_tri_mesh(v, f);
56-
assert_rows_match(v, z, "v", "z");
57-
assert_cols_equals(z, 1, "z");
58-
EigenDenseLike<npe_Matrix_v> iso_v;
59-
EigenDenseLike<npe_Matrix_f> iso_e;
60-
igl::isolines(v, f, z, n, iso_v, iso_e);
61-
return std::make_tuple(npe::move(iso_v), npe::move(iso_e));
56+
assert_valid_23d_tri_mesh(V, F);
57+
assert_rows_match(V, S, "V", "S");
58+
assert_cols_equals(S, 1, "S");
59+
EigenDenseLike<npe_Matrix_V> iV;
60+
EigenDenseLike<npe_Matrix_F> iE;
61+
Eigen::Matrix<typename npe_Matrix_F::Scalar, Eigen::Dynamic, 1> I;
62+
Eigen::Matrix<typename npe_Matrix_vals::Scalar, Eigen::Dynamic, 1> vals_copy = vals;
63+
igl::isolines(V, F, S.col(0), vals_copy, iV, iE, I);
64+
return std::make_tuple(npe::move(iV), npe::move(iE), npe::move(I));
6265

6366
npe_end_code()
6467

src/topological_hole_fill.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Parameters
2222
----------
2323
2424
F #F by simplex-size list of element indices
25-
b #b boundary indices to preserve
2625
holes vector of hole loops to fill
2726
2827
Returns
@@ -47,14 +46,13 @@ npe_function(topological_hole_fill)
4746
npe_doc(ds_topological_hole_fill)
4847

4948
npe_arg(f, dense_int, dense_long, dense_longlong)
50-
npe_arg(b, dense_int, dense_long, dense_longlong)
5149
npe_arg(holes, std::vector<std::vector<int>>)
5250

5351

5452
npe_begin_code()
5553

5654
EigenDense<npe_Scalar_f> f_filled;
57-
igl::topological_hole_fill(f, b, holes, f_filled);
55+
igl::topological_hole_fill(f, holes, f_filled);
5856
return npe::move(f_filled);
5957

6058
npe_end_code()

0 commit comments

Comments
 (0)