编写脚本实现多站点云导出到同一个文件中,其中需要对每站数据进行旋转平移变换,否则点云数据一团糟,没有使用价值。附乱七八糟的代码(防自己忘记
import bpy
import math
import numpy as np
from numpy import arange
from bpy import data as D
from bpy import context as C
from mathutils import *
from math import *
import blensor
"""clear the scanning in view windows and start newly scan"""
bpy.ops.blensor.scan()
#旋转矩阵
def rotate(x_ang,y_ang,z_ang):
x_mat=np.mat([[1,0,0,0],
[0,cos(x_ang),sin(x_ang),0],
[0,-sin(x_ang),cos(x_ang),0