1、OrthographicCamera 正交投影照相機
/*
* @parma left/right 相對于垂直平面的左/右側坐標位置
* @parma top/bottom 相對于垂直平面的頂/底部坐標位置
* @parma near/far 相對于深度剪切面的近/遠的距離
*/
2、PerspectiveCamera 透視投影照相機
THREE.PerspectiveCamera(fov, aspect, near, far)
/*
* @param fov 視角
* @param aspect 長寬比
* @param near/far 近/遠相機的距離
*/
3、CubeGeometry 立方體
THREE.CubeGeometry(width, height, depth, widthSegments, heightSegments, depthSegments)
/*
* @param width/height/depth 長/寬/高
* @param widthSegments/heightSegments/depthSegments 長/寬/高方向上的段數
*/
4、 PlaneGeometry 長方形
THREE.PlaneGeometry(width, height, widthSegments, heightSegments)
/*
* @param width/height 長/寬
* @param widthSegments/heightSegments 長/寬方向上的段數
*/
5、SphereGeometry 球體
THREE.SphereGeometry(radius, segmentsWidth, segmentsHeight, phiStart, phiLength, thetaStart, thetaLength)
/*
* @param radius半徑
* @param segmentsWidth/segmentsHeight 經/緯度上的切片數
* @param phiStart/thetaStart 經/緯度開始的弧度
* @param phiLength/thetaLength 經/緯度跨過的弧度
6、CircleGeometry 圓形
THREE.CircleGeometry(radius, segments, thetaStart, thetaLength)
/*
* @param radius 半徑
* @param segments 分段
* @param thetaStart 緯度開始的弧度
* @param thetaLength 緯度的跨度
*/
7、CylinderGeometry圓柱體
THREE.CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded)
/*
* @param openEnded 是否沒有頂面和底面,默認為false,表示有頂面和底面
*/
8、正四面體、正八面體、正二十面體
// 正四面體
THREE.TetrahedronGeometry(radius, detail)
// 正八面體
THREE.OctahedronGeometry(radius, detail)
// 正二十面體
THREE.IcosahedronGeometry(radius, detail)
9、TorusGeometry圓環面
THREE.TorusGeometry(radius, tube, radialSegments, tubularSegments, arc)
/*
* @param tube 管道半徑
* @param tubularSegments 管道段數
*/
10、TorusKnotGeometry圓環節
THREE.TorusKnotGeometry(radius, tube, radialSegments, tubularSegments, p, q, heightScale)
/*
* @param p,q是控制其樣式的參數
* @param heightScale 在z軸上的縮放
*/