Please enable JavaScript.
Coggle requires JavaScript to display documents.
Three.js (几何形状 (立方体 (THREE.CubeGeometry(width, height, depth,…
Three.js
几何形状
立方体
THREE.CubeGeometry(width, height, depth, widthSegments, heightSegments, depthSegments)
-
-
-
-
平面
THREE.PlaneGeometry(width, height, widthSegments, heightSegments)
-
-
-
球体和弧度
THREE.SphereGeometry(radius, segmentsWidth, segmentsHeight, phiStart, phiLength, thetaStart, thetaLength)
-
-
-
-
-
-
-
圆形
THREE.CircleGeometry(radius, segments, thetaStart, thetaLength)
-
-
-
-
圆柱和圆台
THREE.CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded)
-
-
-
-
-
正多面体
THREE.TetrahedronGeometry(radius, detail);
THREE.OctahedronGeometry(radius, detail);
THREE.IcosahedronGeometry(radius, detail);
-
-
圆环面
THREE.TorusGeometry(radius, tube, radialSegments, tubularSegments, arc)
-
-
-
-
圆环结
THREE.TorusKnotGeometry(radius, tube, radialSegments, tubularSegments, p, q, heightScale)
-
-
-
-
-
Renderer
与 Canvas 元素进行绑定
-
自动生成
renderer.setSize(400, 300);
Ele.appendChild(renderer.domElement);
-
Camera
创建
const camera = new THREE.PerspectiveCamera(45, 4 / 3, 1, 1000);
投影
正交投影
THREE.OrthographicCamera(left, right, top, bottom, near, far);
-
透视投影
THREE.PerspectiveCamera(fov, aspect, near, far);
-
文字
创建
THREE.TextGeometry(text, parameters)
-
-
-