forked from libigl/libigl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_shared.cpp
More file actions
203 lines (178 loc) · 4.72 KB
/
Copy pathpython_shared.cpp
File metadata and controls
203 lines (178 loc) · 4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#include "python_shared.h"
#include <sstream>
#include <string>
#include <fstream>
extern void python_export_vector(py::module &);
extern void python_export_igl(py::module &);
#ifdef PY_GLFW
extern void python_export_igl_glfw(py::module &);
#endif
#ifdef PY_COMISO
extern void python_export_igl_comiso(py::module &);
#endif
#ifdef PY_TETGEN
extern void python_export_igl_tetgen(py::module &);
#endif
#ifdef PY_EMBREE
extern void python_export_igl_embree(py::module &);
#endif
#ifdef PY_TRIANGLE
extern void python_export_igl_triangle(py::module &);
#endif
#ifdef PY_CGAL
extern void python_export_igl_cgal(py::module &);
#endif
#ifdef PY_COPYLEFT
extern void python_export_igl_copyleft(py::module &);
#endif
#ifdef PY_PNG
extern void python_export_igl_png(py::module &);
#endif
PYBIND11_PLUGIN(pyigl) {
py::module m("pyigl", R"pyigldoc(
Python wrappers for libigl
--------------------------
.. currentmodule:: pyigl
.. autosummary::
:toctree: _generate
AABB
ARAPEnergyType
MeshBooleanType
SolverStatus
active_set
adjacency_list
arap
avg_edge_length
barycenter
barycentric_coordinates
barycentric_to_global
bbw
boundary_conditions
boundary_facets
boundary_loop
cat
collapse_edge
colon
column_to_quats
comb_cross_field
comb_frame_field
compute_frame_field_bisectors
copyleft_cgal_RemeshSelfIntersectionsParam
copyleft_cgal_mesh_boolean
copyleft_cgal_remesh_self_intersections
copyleft_comiso_miq
copyleft_comiso_nrosy
copyleft_marching_cubes
copyleft_swept_volume
copyleft_tetgen_tetrahedralize
cotmatrix
covariance_scatter_matrix
cross_field_missmatch
cut_mesh_from_singularities
deform_skeleton
directed_edge_orientations
directed_edge_parents
doublearea
dqs
edge_lengths
edge_topology
eigs
embree_ambient_occlusion
embree_line_mesh_intersection
embree_reorient_facets_raycast
find_cross_field_singularities
fit_rotations
floor
forward_kinematics
gaussian_curvature
get_seconds
grad
harmonic
hsv_to_rgb
internal_angles
invert_diag
is_irregular_vertex
jet
lbs_matrix
local_basis
lscm
map_vertices_to_circle
massmatrix
min_quad_with_fixed
normalize_row_lengths
normalize_row_sums
parula
per_corner_normals
per_edge_normals
per_face_normals
per_vertex_normals
planarize_quad_mesh
png_readPNG
png_writePNG
point_mesh_squared_distance
polar_svd
principal_curvature
quad_planarity
randperm
readDMAT
readMESH
readOBJ
readOFF
readTGF
read_triangle_mesh
remove_duplicate_vertices
rotate_vectors
setdiff
signed_distance
slice
slice_into
slice_mask
slice_tets
sortrows
streamlines
triangle_triangle_adjacency
triangle_triangulate
unique
unproject_onto_mesh
upsample
winding_number
writeMESH
writeOBJ
writePLY
readPLY
)pyigldoc");
python_export_vector(m);
python_export_igl(m);
#ifdef PY_GLFW
python_export_igl_glfw(m);
#endif
#ifdef PY_COMISO
python_export_igl_comiso(m);
#endif
#ifdef PY_TETGEN
python_export_igl_tetgen(m);
#endif
#ifdef PY_EMBREE
python_export_igl_embree(m);
#endif
#ifdef PY_TRIANGLE
python_export_igl_triangle(m);
#endif
#ifdef PY_CGAL
python_export_igl_cgal(m);
#endif
#ifdef PY_COPYLEFT
python_export_igl_copyleft(m);
#endif
#ifdef PY_PNG
python_export_igl_png(m);
#endif
return m.ptr();
}