13 lines
313 B
Python
13 lines
313 B
Python
from build123d import offset as _offset
|
|
|
|
|
|
def validate(context, target, params):
|
|
errors = []
|
|
if target is None:
|
|
errors.append("NO_TARGET: sketch_offset 需要一个二维草图作为输入")
|
|
return errors
|
|
|
|
|
|
def run(context, target, params):
|
|
return _offset(target, amount=params["amount"])
|