python_shared.cpp 3.1 KB

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