BoxGeometry/BoxBufferGeometry ##
盒子几何体
构造函数
BoxGeometry(width : Float, height : Float, depth : Float, widthSegments : Integer, heightSegments : Integer, depthSegments : Integer)/BoxBufferGeometry(....)
两者参数相同,一下都相同
width/height/depth 在x/y/z轴上的宽度,默认1
后三个为可选的在侧面分段的面数,默认1
特性
- parameters: Object 每个构造函数参数属性的对象,实例化后任何修改都不会改变几何图形
CircleGeometry/CircleBufferGeometry
圆形几何体
构造函数
CircleGeometry(radius : Float, segments : Integer, thetaStart : Float, thetaLength : Float)
(可选)半径 默认1;(可选)分段默认8,最小3;(可选)开始角度默认0;(可选)周长 2*PI
特性
- parameters: Object
ConeGeometry/ConeBufferGeometry
圆锥几何体
构造函数
ConeGeometry(radius : Float, height : Float, radialSegments : Integer, heightSegments : Integer, openEnded : Boolean, thetaStart : Float, thetaLength : Float)
openEnded: 默认false,true则底部不显示
特性
- parameters: Object
CylinderGeometry/CylinBufferGeometry
圆柱几何体
构造函数
CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded, thetaStart, thetaLength)
openEnded: 默认false,true则底部不显示
特性
- parameters: Object
DodecahedronGeometry/DodecahedronBufferGeometry
十二面几何体
构造函数
DodecahedronGeometry(radius, detail)
detail: 默认0,设置后添加顶点不再是十二面体
EdgesGeometry
查看几何体的边缘
构造函数
EdgesGeometry( geometry : Geometry, thresholdAngle : Integer )
ExtrudeGeometry/ExtrudeBufferGeometry
塑型几何体,用形状路径来创建
构造函数
ExtrudeGeometry(shapes : Array, options : Object)
IcosahederonGeometry/IcosahedronBufferGeometry
二十面几何体
构造函数
IcosahederonGeometry(radius, detail)
LatheGeometry/LatheBufferGeometry
拉氏几何体
构造函数
LatheGeometry(points : Array, segments : Integer, phiStart : Float, phiLength : Float)
分段默认12
OctahedronGeometry/OctahedronBufferGeometry
正八面体
构造函数
OctahedronGeometry(radius : Float, detail : Integer)
分段默认12
ParametricGeometry/ParametricBufferGeometry
参数化几何体
构造函数
ParametricGeometry(func : Function, slices : Integer, stacks : Integer)
func - 一个函数,它接收0和1之间的u和v值,并修改第三个Vector3参数
slice - 用于参数函数的切片计数
stacks - 用于参数函数的堆栈计数
PlaneGeometry/PlaneBufferGeometry
平面几何体
构造函数
PlaneGeometry(width : Float, height : Float, widthSegments : Integer, heightSegments : Integer)
PolyhedronGeometry/PolyhedronBufferGeometry
多面体
构造函数
OctahedronGeometry(radius : Float, detail : Integer)PolyhedronGeometry(vertices, faces, radius, detail)
RingGeometry/RingBufferGeometry
圆环
构造函数
RingGeometry(innerRadius : Float, outerRadius : Float, thetaSegments : Integer, phiSegments : Integer, thetaStart : Float, thetaLength : Float)
ShapeGeometry/ShapeBufferGeometry
从一个或多个路径形状创建一个单面多边形几何模型
构造函数
ShapeGeometry(shapes : Array, curveSegments : Integer)
SphereGeometry/SphereBufferGeometry
构造函数
SphereGeometry(radius : Float, widthSegments : Integer, heightSegments : Integer, phiStart : Float, phiLength : Float, thetaStart : Float, thetaLength : Float)
thetaStart — 指定垂直起始角度. 默认值为0.
thetaLength — 指定垂直扫描角度大小. 默认值为Math.PI.
几何模型是通过扫描和计算绕Y轴(水平扫描)和Z轴(垂直扫描)的顶点创建而成
TetrahedronGeometry/TetrahedronBufferGeometry
四面体
构造函数
TetrahedronGeometry(radius : Float, detail : Integer)
TextGeometry/TextBufferGeometry
文本几何体
构造函数
TextGeometry(text : String, parameters : Object)
parameters可选参数
font: THREE.Font,
size: 100,
height: 50,
curveSegments: 12,
bevelEnabled: false, 是否打开斜面
bevelThickness: 10,
bevelSize: 8,
bevelSegments: 3
TorusGeometry/TorusBufferGeometry
环面几何体
构造函数
TorusGeometry(radius : Float, tube : Float, radialSegments : Integer, tubularSegments : Integer, arc : Float)
tube: 管道的宽度
radialSegments: 可理解为垂直方向的分段
TorusKnotGeometry/TorusKnotBufferGeometry
环面打结几何体
构造函数
TorusKnotGeometry(radius : Float, tube : Float, tubularSegments : Integer, radialSegments : Integer, p : Integer, q : Integer)
p — 这个值决定了几何体绕旋转对称轴绕了多少圈. 默认值为2.
q — 这个值决定了几何体绕环面的圆绕了多少圈. 默认值为3.
TubeGeometry/TubeBufferGeometry
沿着3D曲线挤压的管子
构造函数
TubeGeometry(path : Curve, tubularSegments : Integer, radius : Float, radialSegments : Integer, closed : Boolean)
WireframeGeometry
以线框的方式查看几何对象
构造函数
WireframeGeometry( geometry : Geometry )