没有废话,直接上代码
记得要声明Point类
#结构式在三维坐标上平移,默认将下标为0的点移动到某个位置,其它点同样平移
#这个listPoint可能只是一个片段
@staticmethod
def structureMoveTo(listPoint, moveToPoint, index = 0):
if 0 <= index < len(listPoint)
没有废话,直接上代码
记得要声明Point类
#结构式在三维坐标上平移,默认将下标为0的点移动到某个位置,其它点同样平移
#这个listPoint可能只是一个片段
@staticmethod
def structureMoveTo(listPoint, moveToPoint, index = 0):
if 0 <= index < len(listPoint)