Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ dist
Method
dist
cadquery/selectors.py:83–84 ·
view source on GitHub ↗
(tShape)
Source
from the content-addressed store, hash-verified
81
82
def
filter(self, objectList: Sequence[Shape]):
83
def
dist(tShape):
84
return
tShape.Center().sub(Vector(*self.pnt)).Length
85
86
return
[min(objectList, key=dist)]
87
Callers
nothing calls this directly
Calls
3
Vector
Class · 0.85
sub
Method · 0.80
Center
Method · 0.45
Tested by
no test coverage detected