而不是像 gui中的 两个构件那样。
我暂时的代码如下:
Code: Select all
def execute(self, obj):
"""
Called during document recomputes;
Do not call recompute() from this method (or any method called from execute()) as this causes a nested recompute.
"""
Box1 = Part.makeBox(obj.Length, obj.Width, obj.Height)
Box2 = Part.makeBox(obj.Length, obj.Width_inside, obj.Height_inside)
# obj.Shape = Part.CompSolid([Box1, Box2]) # 如何进行 Cut?