zoukankan      html  css  js  c++  java
  • 3D模型api操作

    移动

    threebox.moveToCoordinate(aircraft, planePosition, {'scaleToLatitude': true, 'preScale': 40})

    缩放

    obj.scale.x = 2,obj.scale.y = 3,obj.scale.z = 4

    旋转

    obj.rotation.x += 2,obj.rotation.y +=3,obj.rotation.z += 4

    位置

    var material = new THREE.MeshPhongMaterial( {color: 0x838B8B, side: THREE.DoubleSide});
    aircraft = new THREE.Mesh( geometry, material );
    planePosition = [118.8386378, 37.0313616 ,1000];

    var obj = threebox.addAtCoordinate(aircraft, planePosition, {scaleToLatitude: true, preScale: 40,heading: 130});

  • 相关阅读:
    函数的定义
    编码转换
    bytes类型
    用py操作文件(file类的功能)
    HASH哈希
    二进制、bit、 bytes
    POJ3225
    POJ1436
    HDU1394
    HDU1272
  • 原文地址:https://www.cnblogs.com/lilei2blog/p/9686479.html
Copyright © 2011-2022 走看看