UNPKG

three.fbo-helper

Version:

FrameBuffer Object inspector for three.js

30 lines (19 loc) 635 B
import { Geometry } from '../core/Geometry'; import { CircleBufferGeometry } from './CircleBufferGeometry'; /** * @author hughes */ function CircleGeometry( radius, segments, thetaStart, thetaLength ) { Geometry.call( this ); this.type = 'CircleGeometry'; this.parameters = { radius: radius, segments: segments, thetaStart: thetaStart, thetaLength: thetaLength }; this.fromBufferGeometry( new CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) ); } CircleGeometry.prototype = Object.create( Geometry.prototype ); CircleGeometry.prototype.constructor = CircleGeometry; export { CircleGeometry };