MCPcopy Create free account
hub / github.com/MaximeHerpin/modular_tree / connect_strokes

Function connect_strokes

grease_pencil.py:76–80  ·  view source on GitHub ↗
(moving_stroke, parent_stroke)

Source from the content-addressed store, hash-verified

74
75
76def connect_strokes(moving_stroke, parent_stroke):
77 point = moving_stroke[0]
78 segment = min([(i - point) for i in parent_stroke]) + point
79 projection = segment - point
80 return [i + projection for i in moving_stroke]
81
82
83class ConnectStrokes(Operator):

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected