python_shared.cpp 3.8 KB

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