Skip to content

Commit

Permalink
GmMultiPolyIntersector for python - CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkennard-aquaveo committed Jan 4, 2024
1 parent fba3e81 commit b1bce84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmsgrid/python/geometry/GmMultiPolyIntersector_py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ void initGmMultiPolyIntersector(py::module &m) {
// ---------------------------------------------------------------------------
gmMpi.def("TraverseLineSegment", [](xms::GmMultiPolyIntersector &self, py::iterable pt1, py::iterable pt2)
-> py::tuple {
Pt3d p1 = xms::Pt3dFromPyIter(pt1);
Pt3d p2 = xms::Pt3dFromPyIter(pt2);
xms::VecInt poly_ids;
xms::VecDbl t_vals;
xms::VecPt3d pts;
self.TraverseLineSegment(pt1[0], pt1[1], pt2[0], pt2[1], poly_ids, t_vals, pts);
self.TraverseLineSegment(p1.x, p1.y, p2.x, p2.y, poly_ids, t_vals, pts);
return py::make_tuple(xms::PyIterFromVecInt(poly_ids), xms::PyIterFromVecDbl(t_vals), xms::PyIterFromVecPt3d(pts));
}, py::arg("pt1"), py::arg("pt2"));
// ---------------------------------------------------------------------------
Expand Down

0 comments on commit b1bce84

Please sign in to comment.