UNPKG

three.fbo-helper

Version:

FrameBuffer Object inspector for three.js

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