Files
igl/python/python_shared.cpp
T
2016-06-03 16:53:22 +02:00

113 lines
2.5 KiB
C++

#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_VIEWER
extern void python_export_igl_viewer(py::module &);
#endif
#ifdef PY_COMISO
extern void python_export_igl_comiso(py::module &);
#endif
PYBIND11_PLUGIN(pyigl) {
py::module m("pyigl", R"pyigldoc(
Python wrappers for libigl
--------------------------
.. currentmodule:: pyigl
.. autosummary::
:toctree: _generate
principal_curvature
local_basis
signed_distance
triangle_triangulate
embree_ambient_occlusion
cotmatrix
floor
slice
per_face_normals
ARAPEnergyType
quad_planarity
readOFF
per_vertex_normals
sortrows
barycenter
jet
cat
eigs
per_corner_normals
massmatrix
unproject_onto_mesh
colon
fit_rotations
rotate_vectors
read_triangle_mesh
SolverStatus
gaussian_curvature
planarize_quad_mesh
avg_edge_length
barycentric_coordinates
lscm
find_cross_field_singularities
upsample
slice_mask
point_mesh_squared_distance
parula
setdiff
copyleft_tetgen_tetrahedralize
comb_frame_field
map_vertices_to_circle
writeOBJ
active_set
AABB
per_edge_normals
covariance_scatter_matrix
boundary_facets
compute_frame_field_bisectors
edge_lengths
readOBJ
cut_mesh_from_singularities
readDMAT
doublearea
min_quad_with_fixed
writeMESH
unique
arap
cross_field_missmatch
grad
slice_into
slice_tets
n_polyvector
harmonic
boundary_loop
polar_svd
comb_cross_field
invert_diag
readMESH
copyleft_comiso_miq
copyleft_comiso_nrosy
)pyigldoc");
python_export_vector(m);
python_export_igl(m);
#ifdef PY_VIEWER
python_export_igl_viewer(m);
#endif
#ifdef PY_COMISO
python_export_igl_comiso(m);
#endif
return m.ptr();
}