MCPcopy
hub / github.com/CadQuery/cadquery / select_lowest_point

Function select_lowest_point

cadquery/hull.py:115–127  ·  view source on GitHub ↗
(points: Points)

Source from the content-addressed store, hash-verified

113
114
115def select_lowest_point(points: Points) -> Tuple[Point, int]:
116
117 x = []
118 y = []
119
120 for p in points:
121 x.append(p.x)
122 y.append(p.y)
123
124 # select the lowest point
125 ixs = lexsort((x, y))
126
127 return points[ixs[0]], ixs[0]
128
129
130def select_lowest_arc(arcs: Arcs) -> Tuple[Point, Arc]:

Callers 2

select_lowest_arcFunction · 0.85
select_lowestFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected