python_shared.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. #ifdef PY_TETGEN
  14. extern void python_export_igl_tetgen(py::module &);
  15. #endif
  16. #ifdef PY_EMBREE
  17. extern void python_export_igl_embree(py::module &);
  18. #endif
  19. #ifdef PY_TRIANGLE
  20. extern void python_export_igl_triangle(py::module &);
  21. #endif
  22. #ifdef PY_CGAL
  23. extern void python_export_igl_cgal(py::module &);
  24. #endif
  25. #ifdef PY_PNG
  26. extern void python_export_igl_png(py::module &);
  27. #endif
  28. PYBIND11_PLUGIN(pyigl) {
  29. py::module m("pyigl", R"pyigldoc(
  30. Python wrappers for libigl
  31. --------------------------
  32. .. currentmodule:: pyigl
  33. .. autosummary::
  34. :toctree: _generate
  35. AABB
  36. ARAPEnergyType
  37. MeshBooleanType
  38. SolverStatus
  39. active_set
  40. arap
  41. avg_edge_length
  42. barycenter
  43. barycentric_coordinates
  44. boundary_facets
  45. boundary_loop
  46. cat
  47. colon
  48. comb_cross_field
  49. comb_frame_field
  50. compute_frame_field_bisectors
  51. copyleft_cgal_mesh_boolean
  52. copyleft_comiso_miq
  53. copyleft_comiso_nrosy
  54. copyleft_tetgen_tetrahedralize
  55. cotmatrix
  56. covariance_scatter_matrix
  57. cross_field_missmatch
  58. cut_mesh_from_singularities
  59. doublearea
  60. edge_lengths
  61. eigs
  62. embree_ambient_occlusion
  63. find_cross_field_singularities
  64. fit_rotations
  65. floor
  66. gaussian_curvature
  67. grad
  68. harmonic
  69. internal_angles
  70. invert_diag
  71. is_irregular_vertex
  72. jet
  73. local_basis
  74. lscm
  75. map_vertices_to_circle
  76. massmatrix
  77. min_quad_with_fixed
  78. n_polyvector
  79. parula
  80. per_corner_normals
  81. per_edge_normals
  82. per_face_normals
  83. per_vertex_normals
  84. planarize_quad_mesh
  85. png_readPNG
  86. png_writePNG
  87. point_mesh_squared_distance
  88. polar_svd
  89. principal_curvature
  90. quad_planarity
  91. readDMAT
  92. readMESH
  93. readOBJ
  94. readOFF
  95. read_triangle_mesh
  96. rotate_vectors
  97. setdiff
  98. signed_distance
  99. slice
  100. slice_into
  101. slice_mask
  102. slice_tets
  103. sortrows
  104. triangle_triangulate
  105. unique
  106. unproject_onto_mesh
  107. upsample
  108. writeMESH
  109. writeOBJ
  110. )pyigldoc");
  111. python_export_vector(m);
  112. python_export_igl(m);
  113. #ifdef PY_VIEWER
  114. python_export_igl_viewer(m);
  115. #endif
  116. #ifdef PY_COMISO
  117. python_export_igl_comiso(m);
  118. #endif
  119. #ifdef PY_TETGEN
  120. python_export_igl_tetgen(m);
  121. #endif
  122. #ifdef PY_EMBREE
  123. python_export_igl_embree(m);
  124. #endif
  125. #ifdef PY_TRIANGLE
  126. python_export_igl_triangle(m);
  127. #endif
  128. #ifdef PY_CGAL
  129. python_export_igl_cgal(m);
  130. #endif
  131. #ifdef PY_PNG
  132. python_export_igl_png(m);
  133. #endif
  134. return m.ptr();
  135. }