1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

fix TorusKnotGeometry

This commit is contained in:
Kevin Levron 2021-03-10 22:05:01 +01:00
parent 9884606a9a
commit 2fd469bd20

View File

@ -6,14 +6,14 @@ export default {
props: { props: {
radius: { type: Number, default: 1 }, radius: { type: Number, default: 1 },
tube: { type: Number, default: 0.4 }, tube: { type: Number, default: 0.4 },
radialSegments: { type: Number, default: 64 }, tubularSegments: { type: Number, default: 64 },
tubularSegments: { type: Number, default: 8 }, radialSegments: { type: Number, default: 8 },
p: { type: Number, default: 2 }, p: { type: Number, default: 2 },
q: { type: Number, default: 3 }, q: { type: Number, default: 3 },
}, },
methods: { methods: {
createGeometry() { createGeometry() {
this.geometry = new TorusKnotGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q); this.geometry = new TorusKnotGeometry(this.radius, this.tube, this.tubularSegments, this.radialSegments, this.p, this.q);
}, },
}, },
}; };