diff --git a/butils.py b/butils.py index 3fe2098..11a30ca 100644 --- a/butils.py +++ b/butils.py @@ -138,6 +138,24 @@ def calc_tangent_on_bezier(bezier_point_1, bezier_point_2, t): ).normalized() +# class TestCalcPoint(): + # co: mathutils.Vector + # handle_left: mathutils.Vector + # handle_right: mathutils.Vector + # def __init__(self, co, handle_left=None, handle_right=None): + # self.co = co + # if handle_left is not None: + # self.handle_left = handle_left + # if handle_right is not None: + # self.handle_right = handle_right + + +# a = TestCalcPoint(mathutils.Vector((0,0,0)), handle_right=mathutils.Vector((0,1,0))) +# b = TestCalcPoint(mathutils.Vector((1,0,0)), handle_left=mathutils.Vector((1,1,0))) +# c = TestCalcPoint(mathutils.Vector((0,0,0)), handle_right=mathutils.Vector((0,0,0))) +# d = TestCalcPoint(mathutils.Vector((1,0,0)), handle_left=mathutils.Vector((1,0,0))) +# calc_point_on_bezier(a,b,0.5) + def align_rotations_auto_pivot(