python_shared.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. triangle_triangulate
  24. embree_ambient_occlusion
  25. cotmatrix
  26. floor
  27. slice
  28. per_face_normals
  29. ARAPEnergyType
  30. quad_planarity
  31. readOFF
  32. per_vertex_normals
  33. sortrows
  34. barycenter
  35. jet
  36. cat
  37. eigs
  38. per_corner_normals
  39. massmatrix
  40. unproject_onto_mesh
  41. colon
  42. fit_rotations
  43. rotate_vectors
  44. read_triangle_mesh
  45. SolverStatus
  46. gaussian_curvature
  47. planarize_quad_mesh
  48. avg_edge_length
  49. barycentric_coordinates
  50. lscm
  51. find_cross_field_singularities
  52. upsample
  53. slice_mask
  54. point_mesh_squared_distance
  55. parula
  56. setdiff
  57. copyleft_tetgen_tetrahedralize
  58. comb_frame_field
  59. map_vertices_to_circle
  60. writeOBJ
  61. active_set
  62. AABB
  63. per_edge_normals
  64. covariance_scatter_matrix
  65. boundary_facets
  66. compute_frame_field_bisectors
  67. edge_lengths
  68. readOBJ
  69. cut_mesh_from_singularities
  70. readDMAT
  71. doublearea
  72. min_quad_with_fixed
  73. writeMESH
  74. unique
  75. arap
  76. cross_field_missmatch
  77. grad
  78. slice_into
  79. slice_tets
  80. n_polyvector
  81. harmonic
  82. boundary_loop
  83. polar_svd
  84. comb_cross_field
  85. invert_diag
  86. readMESH
  87. copyleft_comiso_miq
  88. copyleft_comiso_nrosy
  89. )pyigldoc");
  90. python_export_vector(m);
  91. python_export_igl(m);
  92. #ifdef PY_VIEWER
  93. python_export_igl_viewer(m);
  94. #endif
  95. #ifdef PY_COMISO
  96. python_export_igl_comiso(m);
  97. #endif
  98. return m.ptr();
  99. }