example
initThree
extraModuleUse
css3DSprites
文档
图元
const width = 1;
const height = 1;
const depth = 0.5;
const geometry = new THREE.BoxGeometry(width, height, depth);
const width = 8;
const height = 8;
const depth = 8 ;
const widthSegments = 4;
const heightSegments = 4;
const depthSegments= 4;
const geometry = new THREE.BoxGeometry(width,height,depth,widthSegments,heightSegments,depthSegments)
const radius = 7;
const segments = 24;
const geometry = new THREE.CircleGeometry(radius,segments)
const radius = 7;
const segments = 24;
const thetaStart = 0;
const thetaEnd = Math.PI
const geometry = new THREE.CircleGeometry(radius,segments,thetaStart,thetaEnd);
const radius =6;
const height = 8;
const radialSegments =16;
const geometry = new THREE.ConeGeometry(radius,height,radialSegments);
[带起始角度的圆锥(高度分割为2,开放底部)]