python_shared.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #include "python_shared.h"
  2. #include <sstream>
  3. #include <string>
  4. #include <fstream>
  5. extern void python_export_vector(py::module &);
  6. extern void python_export_igl(py::module &);
  7. #ifdef PY_VIEWER
  8. extern void python_export_igl_viewer(py::module &);
  9. #endif
  10. #ifdef PY_COMISO
  11. extern void python_export_igl_comiso(py::module &);
  12. #endif
  13. PYBIND11_PLUGIN(pyigl) {
  14. py::module m("pyigl", R"pyigldoc(
  15. Python wrappers for libigl
  16. --------------------------
  17. .. currentmodule:: pyigl
  18. .. autosummary::
  19. :toctree: _generate
  20. principal_curvature
  21. local_basis
  22. signed_distance
  23. cotmatrix
  24. floor
  25. slice
  26. per_face_normals
  27. ARAPEnergyType
  28. readOFF
  29. per_vertex_normals
  30. sortrows
  31. barycenter
  32. jet
  33. cat
  34. eigs
  35. per_corner_normals
  36. massmatrix
  37. colon
  38. fit_rotations
  39. rotate_vectors
  40. read_triangle_mesh
  41. SolverStatus
  42. gaussian_curvature
  43. avg_edge_length
  44. barycentric_coordinates
  45. lscm
  46. find_cross_field_singularities
  47. upsample
  48. slice_mask
  49. point_mesh_squared_distance
  50. parula
  51. setdiff
  52. comb_frame_field
  53. map_vertices_to_circle
  54. writeOBJ
  55. active_set
  56. AABB
  57. per_edge_normals
  58. covariance_scatter_matrix
  59. boundary_facets
  60. compute_frame_field_bisectors
  61. edge_lengths
  62. readOBJ
  63. cut_mesh_from_singularities
  64. readDMAT
  65. doublearea
  66. min_quad_with_fixed
  67. writeMESH
  68. unique
  69. arap
  70. cross_field_missmatch
  71. grad
  72. slice_into
  73. slice_tets
  74. n_polyvector
  75. harmonic
  76. boundary_loop
  77. polar_svd
  78. comb_cross_field
  79. invert_diag
  80. readMESH
  81. copyleft_comiso_miq
  82. copyleft_comiso_nrosy
  83. )pyigldoc");
  84. python_export_vector(m);
  85. python_export_igl(m);
  86. #ifdef PY_VIEWER
  87. python_export_igl_viewer(m);
  88. #endif
  89. #ifdef PY_COMISO
  90. python_export_igl_comiso(m);
  91. #endif
  92. return m.ptr();
  93. }