ModelEditor

new Cesium.ModelEditor(options, container, scene, transform, boundingSphere, originOffset)

模型矩阵编辑工具
Name Type Description
options Object
container Object 场景容器
scene Object 场景试视图
transform Object 要修改的模型矩阵
boundingSphere Object 模型的包围盒
originOffset Object 编辑轴偏移值,默认Cartesian3.UNIT_X
Example:
var modelEditor = new Cesium.ModelEditor({
                     container: viewer.container,
                     scene: viewer.scene,
                     transform: model.modelMatrix,
                     boundingSphere: model.boundingSphere
                 });
 //获取模型视图对象
 viewModel = transformEditor.viewModel;
 //设置模型视图平移
 viewModel.setModeTranslation();
 //激活平移工具
 viewModel.activate();