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

improve tube

This commit is contained in:
Kevin Levron 2021-03-09 13:35:19 +01:00
parent ec15bd7bd2
commit 6cfefd9761

View File

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