li.refreshBoundingInfo(true) is not effect
var points = []
for (var i = 0; i < 100; i++) {
// This is the effect I want, but I don't want to do it like this
// points.push(new BABYLON.Vector3(i - 50, 5 * Math.sin(i / 5) + 10, 5 * Math.cos(i / 5)))
points.push(new BABYLON.Vector3(i - 50, 5 * Math.sin(i / 5), 5 * Math.cos(i / 5)))
}
var path3d = new BABYLON.Path3D(points)
var curve = path3d.getCurve()
var li = BABYLON.Mesh.CreateLines('li', curve, scene)
li.position.y = 10
// This update is not working,I know it needs to update all vertices,
// mesh.updateVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
// But this calculation is quite complicated
li.refreshBoundingInfo(true)