美文网首页
vue-three 几何体类型

vue-three 几何体类型

作者: name_howe | 来源:发表于2023-04-16 14:17 被阅读0次
// 锥形
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);

相关文章

网友评论

      本文标题:vue-three 几何体类型

      本文链接:https://www.haomeiwen.com/subject/irnqyltx.html