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

Function arc_angle_cost

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

Source from the content-addressed store, hash-verified

211
212
213def arc_angle_cost(x, t, x0, val):
214
215 if t == "CIRCLE":
216 rv = x[4] - val
217 else:
218 raise invalid_args(t)
219
220 return rv
221
222
223# dictionary of individual constraint cost functions

Callers

nothing calls this directly

Calls 1

invalid_argsFunction · 0.85

Tested by

no test coverage detected