mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 20:32:02 +08:00
18 lines
614 B
JavaScript
18 lines
614 B
JavaScript
|
import { RingBufferGeometry } from 'three';
|
||
|
import Geometry from './Geometry.js';
|
||
|
|
||
|
export default {
|
||
|
extends: Geometry,
|
||
|
props: {
|
||
|
innerRadius: { type: Number, default: 0.5 },
|
||
|
outerRadius: { type: Number, default: 1 },
|
||
|
thetaSegments: { type: Number, default: 8 },
|
||
|
phiSegments: { type: Number, default: 1 },
|
||
|
thetaStart: { type: Number, default: 0 },
|
||
|
thetaLength: { type: Number, default: Math.PI * 2 },
|
||
|
},
|
||
|
created() {
|
||
|
this.parent.geometry = new RingBufferGeometry(this.innerRadius, this.outerRadius, this.thetaSegments, this.phiSegments, this.thetaStart, this.thetaLength);
|
||
|
},
|
||
|
};
|