44#include < ipc/candidates/candidates.hpp>
55#include < ipc/collisions/normal/normal_collisions.hpp>
66
7- namespace py = pybind11;
87using namespace ipc ;
98
109void define_adaptive_stiffness (py::module_& m)
@@ -42,10 +41,9 @@ void define_adaptive_stiffness(py::module_& m)
4241 The initial barrier stiffness.
4342 Maximum stiffness of the barrier.
4443 )ipc_Qu8mg5v7" ,
45- py::arg (" bbox_diagonal" ), py::arg (" barrier" ), py::arg (" dhat" ),
46- py::arg (" average_mass" ), py::arg (" grad_energy" ),
47- py::arg (" grad_barrier" ), py::arg (" min_barrier_stiffness_scale" ) = 1e11 ,
48- py::arg (" dmin" ) = 0 );
44+ " bbox_diagonal" _a, " barrier" _a, " dhat" _a, " average_mass" _a,
45+ " grad_energy" _a, " grad_barrier" _a,
46+ " min_barrier_stiffness_scale" _a = 1e11 , " dmin" _a = 0 );
4947
5048 m.def (
5149 " update_barrier_stiffness" , &update_barrier_stiffness,
@@ -64,10 +62,9 @@ void define_adaptive_stiffness(py::module_& m)
6462 Returns:
6563 The updated barrier stiffness.
6664 )ipc_Qu8mg5v7" ,
67- py::arg (" prev_min_distance" ), py::arg (" min_distance" ),
68- py::arg (" max_barrier_stiffness" ), py::arg (" barrier_stiffness" ),
69- py::arg (" bbox_diagonal" ), py::arg (" dhat_epsilon_scale" ) = 1e-9 ,
70- py::arg (" dmin" ) = 0 );
65+ " prev_min_distance" _a, " min_distance" _a, " max_barrier_stiffness" _a,
66+ " barrier_stiffness" _a, " bbox_diagonal" _a, " dhat_epsilon_scale" _a = 1e-9 ,
67+ " dmin" _a = 0 );
7168
7269 m.def (
7370 " semi_implicit_stiffness" ,
@@ -91,8 +88,7 @@ void define_adaptive_stiffness(py::module_& m)
9188 Returns:
9289 The semi-implicit stiffness.
9390 )ipc_Qu8mg5v7" ,
94- py::arg (" stencil" ), py::arg (" vertices" ), py::arg (" mass" ),
95- py::arg (" local_hess" ), py::arg (" dmin" ));
91+ " stencil" _a, " vertices" _a, " mass" _a, " local_hess" _a, " dmin" _a);
9692
9793 m.def (
9894 " semi_implicit_stiffness" ,
@@ -117,8 +113,8 @@ void define_adaptive_stiffness(py::module_& m)
117113 Returns:
118114 The semi-implicit stiffness's.
119115 )ipc_Qu8mg5v7" ,
120- py::arg ( " mesh" ), py::arg ( " vertices" ), py::arg ( " collisions" ) ,
121- py::arg ( " vertex_masses " ), py::arg ( " hess " ), py::arg ( " dmin" ) );
116+ " mesh" _a, " vertices" _a, " collisions" _a, " vertex_masses " _a, " hess " _a ,
117+ " dmin" _a );
122118
123119 m.def (
124120 " semi_implicit_stiffness" ,
@@ -143,6 +139,6 @@ void define_adaptive_stiffness(py::module_& m)
143139 Returns:
144140 The semi-implicit stiffness's.
145141 )ipc_Qu8mg5v7" ,
146- py::arg ( " mesh" ), py::arg ( " vertices" ), py::arg ( " collisions" ) ,
147- py::arg ( " vertex_masses " ), py::arg ( " hess " ), py::arg ( " dmin" ) );
142+ " mesh" _a, " vertices" _a, " collisions" _a, " vertex_masses " _a, " hess " _a ,
143+ " dmin" _a );
148144}
0 commit comments