mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 12:22:03 +08:00
16 lines
240 B
JavaScript
16 lines
240 B
JavaScript
|
import {
|
||
|
SphereBufferGeometry,
|
||
|
} from 'three';
|
||
|
|
||
|
import Mesh from './Mesh.js';
|
||
|
|
||
|
export default {
|
||
|
extends: Mesh,
|
||
|
props: {
|
||
|
radius: Number,
|
||
|
},
|
||
|
created() {
|
||
|
this.geometry = new SphereBufferGeometry(this.radius, 32, 32);
|
||
|
},
|
||
|
};
|