public void Update() { if (dirty) { Tube.UpdateTubeMesh(); // updates adaptive points Tube.UpdatePointMesh(); // needs adaptive points Tube.UpdateLine2Mesh(); // needs adaptive points Tube.UpdateLineMesh(); dirty = false; } }