vue-three 几何体类型
2023-04-16 本文已影响0人
name_howe
// 锥形
this.geometry = new THREE.CylinderGeometry(0, 2, 3, 3, 2, false)
//长方体 参数:长,宽,高
this.geometry = new THREE.BoxGeometry(100, 100, 100);
// 球体 参数:半径60 经纬度细分数40,40
this.geometry = new THREE.SphereGeometry(60, 40, 40);
// 圆柱 参数:圆柱面顶部、底部直径50,50 高度100 圆周分段数
this.geometry = new THREE.CylinderGeometry( 50, 50, 100, 25 );
// 正八面体
this.geometry = new THREE.OctahedronGeometry(50);
// 正十二面体
this.geometry = new THREE.DodecahedronGeometry(50);
// 正二十面体
this.geometry = new THREE.IcosahedronGeometry(50);