mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
improve tube
This commit is contained in:
parent
ec15bd7bd2
commit
6cfefd9761
@ -36,8 +36,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.geometry = new TubeGeometry(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed);
|
this.geometry = new TubeGeometry(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed);
|
||||||
},
|
},
|
||||||
updateCurve() {
|
// update curve points (without using prop, faster)
|
||||||
updateTubeGeometryPoints(this.geometry, this.points);
|
updateCurve(points) {
|
||||||
|
updateTubeGeometryPoints(this.geometry, points);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
__hmrId: 'Tube',
|
__hmrId: 'Tube',
|
||||||
|
Loading…
Reference in New Issue
Block a user