1
0
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:
Kevin Levron 2021-02-28 21:44:06 +01:00
parent c5faba8734
commit 579b9815e2

View File

@ -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',