python_shared.cpp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. deform_skeleton
  66. directed_edge_orientations
  67. directed_edge_parents
  68. doublearea
  69. dqs
  70. edge_lengths
  71. eigs
  72. embree_ambient_occlusion
  73. embree_reorient_facets_raycast
  74. find_cross_field_singularities
  75. fit_rotations
  76. floor
  77. forward_kinematics
  78. gaussian_curvature
  79. get_seconds
  80. grad
  81. harmonic
  82. hsv_to_rgb
  83. internal_angles
  84. invert_diag
  85. is_irregular_vertex
  86. jet
  87. lbs_matrix
  88. local_basis
  89. lscm
  90. map_vertices_to_circle
  91. massmatrix
  92. min_quad_with_fixed
  93. n_polyvector
  94. parula
  95. per_corner_normals
  96. per_edge_normals
  97. per_face_normals
  98. per_vertex_normals
  99. planarize_quad_mesh
  100. png_readPNG
  101. png_writePNG
  102. point_mesh_squared_distance
  103. polar_svd
  104. principal_curvature
  105. quad_planarity
  106. randperm
  107. readDMAT
  108. readMESH
  109. readOBJ
  110. readOFF
  111. readTGF
  112. read_triangle_mesh
  113. rotate_vectors
  114. setdiff
  115. signed_distance
  116. slice
  117. slice_into
  118. slice_mask
  119. slice_tets
  120. sortrows
  121. triangle_triangulate
  122. unique
  123. unproject_onto_mesh
  124. upsample
  125. winding_number
  126. writeMESH
  127. writeOBJ
  128. )pyigldoc");
  129. python_export_vector(m);
  130. python_export_igl(m);
  131. #ifdef PY_VIEWER
  132. python_export_igl_viewer(m);
  133. #endif
  134. #ifdef PY_COMISO
  135. python_export_igl_comiso(m);
  136. #endif
  137. #ifdef PY_TETGEN
  138. python_export_igl_tetgen(m);
  139. #endif
  140. #ifdef PY_EMBREE
  141. python_export_igl_embree(m);
  142. #endif
  143. #ifdef PY_TRIANGLE
  144. python_export_igl_triangle(m);
  145. #endif
  146. #ifdef PY_CGAL
  147. python_export_igl_cgal(m);
  148. #endif
  149. #ifdef PY_PNG
  150. python_export_igl_png(m);
  151. #endif
  152. #ifdef PY_COPYLEFT
  153. python_export_igl_copyleft(m);
  154. #endif
  155. return m.ptr();
  156. }