def do_graft_2(self, data): def to_zero_base(lst): m = min(lst) return [x - m for x in lst] result = map_at_level(to_zero_base, data, item_level=1, data_types=SIMPLE_DATA_TYPES + (SvCurve, SvSurface)) result = graft_data(result, item_level=1, data_types=SIMPLE_DATA_TYPES + (SvCurve, SvSurface)) return result
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(TriangleMesh, ))
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(PointCloud, ))
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(Quaternion, ))
def do_graft(self, data): return graft_data(data, item_level=0, data_types=SIMPLE_DATA_TYPES + (SvCurve, SvSurface))
def do_graft(self, data): return graft_data(data, item_level=1)
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(Matrix, ))
def do_graft(self, data): from sverchok.dependencies import FreeCAD import Part return graft_data(data, item_level=0, data_types=(Part.Shape, ))
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(SvVectorField, ))
def do_graft(self, data): return graft_data(data, item_level=0, data_types=(SvCurve, ))