mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix TorusKnot typo
This commit is contained in:
parent
c5faba8734
commit
579b9815e2
@ -7,8 +7,8 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
radius: { type: Number, default: 0.5 },
|
radius: { type: Number, default: 0.5 },
|
||||||
tube: { type: Number, default: 0.4 },
|
tube: { type: Number, default: 0.4 },
|
||||||
radialSegments: { type: Number, default: 64 },
|
|
||||||
tubularSegments: { type: Number, default: 8 },
|
tubularSegments: { type: Number, default: 8 },
|
||||||
|
radialSegments: { type: Number, default: 64 },
|
||||||
p: { type: Number, default: 2 },
|
p: { type: Number, default: 2 },
|
||||||
q: { type: Number, default: 3 },
|
q: { type: Number, default: 3 },
|
||||||
},
|
},
|
||||||
@ -24,7 +24,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
createGeometry() {
|
createGeometry() {
|
||||||
this.geometry = new TorusKnotBufferGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q);
|
this.geometry = new TorusKnotBufferGeometry(this.radius, this.tube, this.tubularSegments, this.radialSegments, this.p, this.q);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
__hmrId: 'TorusKnot',
|
__hmrId: 'TorusKnot',
|
||||||
|
Loading…
Reference in New Issue
Block a user