python_shared.cpp 4.4 KB

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