mirror of
https://github.com/troisjs/trois.git
synced 2024-11-25 04:42:01 +08:00
21 lines
404 B
JavaScript
21 lines
404 B
JavaScript
import { SphereBufferGeometry } from 'three';
|
|
import Mesh from './Mesh.js';
|
|
|
|
export default {
|
|
extends: Mesh,
|
|
props: {
|
|
radius: Number,
|
|
widthSegments: {
|
|
type: Number,
|
|
default: 12,
|
|
},
|
|
heightSegments: {
|
|
type: Number,
|
|
default: 12,
|
|
},
|
|
},
|
|
created() {
|
|
this.geometry = new SphereBufferGeometry(this.radius, this.widthSegments, this.heightSegments);
|
|
},
|
|
};
|