您的位置:首页 > Web前端 > JavaScript

关于Three.js基本几何形状

2016-12-13 14:59 429 查看
一、有关球体SphereGeometry构造函数参数说明

SphereGeometry(radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength)

radius — sphere radius. Default is 50. 球体半径 默认值 50

widthSegments — number of horizontal segments. Minimum value is 3, and the default is 8. 水平分段数

heightSegments — number of vertical segments. Minimum value is 2, and the default is 6. 垂直分段数

phiStart — specify horizontal starting angle. Default is 0. 水平围绕中心水平角度

phiLength — specify horizontal sweep angle size. Default is Math.PI * 2. 水平围绕周长 一周

thetaStart — specify vertical starting angle. Default is 0. 垂直围绕中心水平角度

thetaLength — specify vertical sweep angle size. Default is Math.PI. 垂直围绕周长 一周

二.请点击下图体验【改变SphereGeometry球体参数与可视化图形】很直观展示





关于Three.js基本几何形状的更多学习

解释几个英文单词 CubeGeometry几何体/PlaneGeometry面板--平面/SphereGeometry球体/CircleGeometry圆形或扇形

CylinderGeometry圆柱体--圆台/TorusGeometry 圆环/TorusKnotGeometry圆环节

http://www.ituring.com.cn/article/50172" target=_blank>http://www.ituring.com.cn/article/50172 讲解three.js中各种几何体

https://threejs.org/docs/index.html 学习参数即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: