MCPcopy Index your code
hub / github.com/CadQuery/cadquery / fixed_point_cost

Function fixed_point_cost

cadquery/occ_impl/sketch_solver.py:105–114  ·  view source on GitHub ↗
(x, t, x0, val)

Source from the content-addressed store, hash-verified

103
104
105def fixed_point_cost(x, t, x0, val):
106
107 if t == "LINE":
108 rv = norm(line_point(x, val) - line_point(x0, val))
109 elif t == "CIRCLE":
110 rv = norm(arc_point(x, val) - arc_point(x0, val))
111 else:
112 raise invalid_args(t)
113
114 return rv
115
116
117def coincident_cost(x1, t1, x10, x2, t2, x20, val):

Callers

nothing calls this directly

Calls 3

line_pointFunction · 0.85
arc_pointFunction · 0.85
invalid_argsFunction · 0.85

Tested by

no test coverage detected