|
| 1 | +#include <common.h> |
1 | 2 | #include <npe.h> |
2 | 3 | #include <typedefs.h> |
3 | 4 |
|
4 | | - |
5 | | - |
6 | | - |
7 | | - |
| 5 | +#include <pybind11/stl.h> |
8 | 6 |
|
9 | 7 | #include <igl/topological_hole_fill.h> |
10 | 8 |
|
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) |
12 | 13 |
|
13 | 14 | Parameters |
14 | 15 | ---------- |
15 | 16 |
|
| 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 |
16 | 20 |
|
17 | 21 | Returns |
18 | 22 | ------- |
19 | | -
|
| 23 | +F_filled input F stacked with filled triangles. |
20 | 24 |
|
21 | 25 | See also |
22 | 26 | -------- |
|
29 | 33 | Examples |
30 | 34 | -------- |
31 | 35 |
|
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 | +
|
42 | 37 | )igl_Qu8mg5v7"; |
43 | 38 |
|
44 | 39 | npe_function(topological_hole_fill) |
45 | 40 | npe_doc(ds_topological_hole_fill) |
46 | 41 |
|
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>>) |
50 | 45 |
|
51 | 46 |
|
52 | 47 | npe_begin_code() |
53 | 48 |
|
54 | | - EigenDense<npe_Scalar_> f_filled; |
| 49 | + EigenDense<npe_Scalar_f> f_filled; |
55 | 50 | igl::topological_hole_fill(f, b, holes, f_filled); |
56 | 51 | return npe::move(f_filled); |
57 | 52 |
|
|
0 commit comments