Skip to content

Commit fbc7dad

Browse files
author
Teseo Schneider
committed
topological_hole_fill
1 parent 6d8508c commit fbc7dad

File tree

2 files changed

+15
-90
lines changed

2 files changed

+15
-90
lines changed

src/topological_hole_fill.cpp

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1+
#include <common.h>
12
#include <npe.h>
23
#include <typedefs.h>
34

4-
5-
6-
7-
5+
#include <pybind11/stl.h>
86

97
#include <igl/topological_hole_fill.h>
108

11-
const char* ds_topological_hole_fill = R"igl_Qu8mg5v7(
9+
const char *ds_topological_hole_fill = R"igl_Qu8mg5v7(
10+
11+
Topological fill hole on a mesh, with one additional vertex each hole
12+
Index of new abstract vertices will be F.maxCoeff() + (index of hole)
1213
1314
Parameters
1415
----------
1516
17+
F #F by simplex-size list of element indices
18+
b #b boundary indices to preserve
19+
holes vector of hole loops to fill
1620
1721
Returns
1822
-------
19-
23+
F_filled input F stacked with filled triangles.
2024
2125
See also
2226
--------
@@ -29,29 +33,20 @@ None
2933
Examples
3034
--------
3135
32-
Topological fill hole on a mesh, with one additional vertex each hole
33-
Index of new abstract vertices will be F.maxCoeff() + (index of hole)
34-
35-
Inputs:
36-
F #F by simplex-size list of element indices
37-
b #b boundary indices to preserve
38-
holes vector of hole loops to fill
39-
Outputs:
40-
F_filled input F stacked with filled triangles.
41-
36+
4237
)igl_Qu8mg5v7";
4338

4439
npe_function(topological_hole_fill)
4540
npe_doc(ds_topological_hole_fill)
4641

47-
npe_arg(f, dense_i32, dense_i64)
48-
npe_arg(b, dense_f32, dense_f64)
49-
npe_arg(holes, std::vector<VectorIndex> &)
42+
npe_arg(f, dense_int, dense_long, dense_longlong)
43+
npe_arg(b, dense_float, dense_double)
44+
npe_arg(holes, std::vector<std::vector<int>>)
5045

5146

5247
npe_begin_code()
5348

54-
EigenDense<npe_Scalar_> f_filled;
49+
EigenDense<npe_Scalar_f> f_filled;
5550
igl::topological_hole_fill(f, b, holes, f_filled);
5651
return npe::move(f_filled);
5752

todo/sparse_voxel_grid.cpp

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)