mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix TorusKnotGeometry
This commit is contained in:
parent
9884606a9a
commit
2fd469bd20
@ -6,14 +6,14 @@ export default {
|
||||
props: {
|
||||
radius: { type: Number, default: 1 },
|
||||
tube: { type: Number, default: 0.4 },
|
||||
radialSegments: { type: Number, default: 64 },
|
||||
tubularSegments: { type: Number, default: 8 },
|
||||
tubularSegments: { type: Number, default: 64 },
|
||||
radialSegments: { type: Number, default: 8 },
|
||||
p: { type: Number, default: 2 },
|
||||
q: { type: Number, default: 3 },
|
||||
},
|
||||
methods: {
|
||||
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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user