Skip to content

Commit

Permalink
topology.py -> loosen abs_tol from 1e-14 to TOLERANCE (currently 1e-6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Aug 29, 2024
1 parent 734a526 commit 674e09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build123d/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -4786,7 +4786,7 @@ def _project_point_on_curve(curve, gp_pnt) -> float:

point = Vector(point)

if isclose(self.distance_to(point), 0.0, abs_tol=1e-14):
if isclose(self.distance_to(point), 0.0, abs_tol=TOLERANCE):
raise ValueError(f"point ({point}) is not on edge")

# Get the extreme of the parameter values for this Edge/Wire
Expand Down

0 comments on commit 674e09a

Please sign in to comment.