MCPcopy Create free account
hub / github.com/FullControlXYZ/fullcontrol / make_grid

Function make_grid

lab/fullcontrol/geometry/convex.py:11–13  ·  view source on GitHub ↗

create a grid of points by interpolating between the points in the two supplied paths

(path1: list, path2: list, cells_between: int)

Source from the content-addressed store, hash-verified

9
10
11def make_grid(path1: list, path2: list, cells_between: int) -> list:
12 'create a grid of points by interpolating between the points in the two supplied paths'
13 return [segmented_line(path1[i], path2[i], cells_between) for i in range(len(path1))]
14
15
16def convex_segment(a1: Point, a2: Point, b1: Point, b2: Point, overextrusion_percent: float) -> list:

Callers 1

convex_pathsXYFunction · 0.85

Calls 1

segmented_lineFunction · 0.90

Tested by

no test coverage detected