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

Function orientation_cost

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

Source from the content-addressed store, hash-verified

201
202
203def orientation_cost(x, t, x0, val):
204
205 if t == "LINE":
206 rv = gp_Vec2d(*(x[2:] - x[:2])).Angle(gp_Vec2d(*val))
207 else:
208 raise invalid_args(t)
209
210 return rv
211
212
213def arc_angle_cost(x, t, x0, val):

Callers

nothing calls this directly

Calls 1

invalid_argsFunction · 0.85

Tested by

no test coverage detected