示例#1
0
    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
示例#2
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(TriangleMesh, ))
示例#3
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(PointCloud, ))
示例#4
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(Quaternion, ))
示例#5
0
 def do_graft(self, data):
     return graft_data(data,
                       item_level=0,
                       data_types=SIMPLE_DATA_TYPES + (SvCurve, SvSurface))
示例#6
0
 def do_graft(self, data):
     return graft_data(data, item_level=1)
示例#7
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(Matrix, ))
示例#8
0
 def do_graft(self, data):
     from sverchok.dependencies import FreeCAD
     import Part
     return graft_data(data, item_level=0, data_types=(Part.Shape, ))
示例#9
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(SvVectorField, ))
示例#10
0
 def do_graft(self, data):
     return graft_data(data, item_level=0, data_types=(SvCurve, ))