Skip to content

Commit

Permalink
will need to change all CreateTuple calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Jan 30, 2025
1 parent f343a4b commit 09162c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bindings/bnd_circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ BND_TUPLE BND_Circle::ClosestParameter(ON_3dPoint testPoint) const
bool success = false;
double t = 0;
success = m_circle.ClosestPointTo(testPoint, &t);
#if defined(ON_PYTHON_COMPILE) && defined(NANOBIND)
BND_TUPLE rc = py::make_tuple(success, t);
#else
BND_TUPLE rc = CreateTuple(2);
SetTuple(rc, 0, success);
SetTuple(rc, 1, t);
#endif

return rc;
}

Expand Down

0 comments on commit 09162c6

Please sign in to comment.