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);
|
||||
},
|
||||
updateCurve() {
|
||||
updateTubeGeometryPoints(this.geometry, this.points);
|
||||
// update curve points (without using prop, faster)
|
||||
updateCurve(points) {
|
||||
updateTubeGeometryPoints(this.geometry, points);
|
||||
},
|
||||
},
|
||||
__hmrId: 'Tube',
|
||||
|
Loading…
Reference in New Issue
Block a user