MCPcopy Create free account
hub / github.com/CadQuery/cadquery / radius_cost

Function radius_cost

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

Source from the content-addressed store, hash-verified

191
192
193def radius_cost(x, t, x0, val):
194
195 if t == "CIRCLE":
196 rv = x[2] - val
197 else:
198 raise invalid_args(t)
199
200 return rv
201
202
203def orientation_cost(x, t, x0, val):

Callers

nothing calls this directly

Calls 1

invalid_argsFunction · 0.85

Tested by

no test coverage detected