예제 #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, ))