十二面缓冲几何体(DodecahedronGeometry)

优质
小牛编辑
112浏览
2023-12-01

一个用于创建十二面几何体的类。

// iOS iframe auto-resize workaround if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) { const scene = document.getElementById( 'scene' ); scene.style.width = getComputedStyle( scene ).width; scene.style.height = getComputedStyle( scene ).height; scene.setAttribute( 'scrolling', 'no' ); }

构造器

DodecahedronGeometry(radius : Float, detail : Integer)

radius — 十二面体的半径,默认值为1。
detail — 默认值为0。将这个值设为一个大于0的数将会为它增加一些顶点,使其不再是一个十二面体。

属性

共有属性请参见其基类PolyhedronGeometry

.parameters : Object

一个包含着构造函数中每个参数的对象。在对象实例化之后,对该属性的任何修改都不会改变这个几何体。

方法(Methods)

共有方法请参见其基类PolyhedronGeometry

源代码

src/geometries/DodecahedronGeometry.js