UNPKG

three.fbo-helper

Version:

FrameBuffer Object inspector for three.js

33 lines (21 loc) 738 B
import { PolyhedronGeometry } from './PolyhedronGeometry'; /** * @author timothypratley / https://github.com/timothypratley */ function OctahedronGeometry( radius, detail ) { var vertices = [ 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1 ]; var indices = [ 0, 2, 4, 0, 4, 3, 0, 3, 5, 0, 5, 2, 1, 2, 5, 1, 5, 3, 1, 3, 4, 1, 4, 2 ]; PolyhedronGeometry.call( this, vertices, indices, radius, detail ); this.type = 'OctahedronGeometry'; this.parameters = { radius: radius, detail: detail }; } OctahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype ); OctahedronGeometry.prototype.constructor = OctahedronGeometry; export { OctahedronGeometry };