@@ -108,6 +108,7 @@ PYBIND11_MODULE(_rgp_accel_cpp, m) {
108108 const std::vector<int >& face_vert_counts,
109109 const std::vector<int >& face_vert_indices,
110110 int num_verts,
111+ const std::vector<double >& mirror_positions,
111112 py::object progress_cb) -> py::dict
112113 {
113114 auto cb = wrap_progress (progress_cb);
@@ -121,7 +122,7 @@ PYBIND11_MODULE(_rgp_accel_cpp, m) {
121122 sample_count,
122123 points, face_normals,
123124 face_vert_counts, face_vert_indices,
124- num_verts, cb);
125+ num_verts, mirror_positions, cb);
125126 }
126127
127128 py::dict d;
@@ -137,10 +138,14 @@ PYBIND11_MODULE(_rgp_accel_cpp, m) {
137138 py::arg (" face_vert_counts" ),
138139 py::arg (" face_vert_indices" ),
139140 py::arg (" num_verts" ),
141+ py::arg (" mirror_positions" ),
140142 py::arg (" progress_cb" ) = py::none (),
141143 " Record mirror side for all guides (batch).\n\n "
142144 " Performs BFS flood-fill + reference matrix construction for\n "
143- " each mirror position. Returns dict with:\n "
145+ " each mirror position. Uses mirror_positions (reflected guide\n "
146+ " world positions) as the distance reference for vertex sorting,\n "
147+ " matching the Python path behavior.\n\n "
148+ " Returns dict with:\n "
144149 " vert_ids: flat list of guide_count * sample_count ints\n "
145150 " ref_matrices: flat list of guide_count * 16 doubles"
146151 );
0 commit comments