-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor usage-vtk-cfd to not mutate object
This commit changes how the Viz object is initialized by moving the expensive computations (loading bike_mesh and tunnelReader) inside the initial loading, such that we can safely and quickly create a new Viz object every time the callback is fired. The previous approach simply mutated the `Viz` object every time a calllback is fired, which could cause inteference when more than one user is using the application
- Loading branch information
xhlulu
committed
Feb 2, 2021
1 parent
76fdf96
commit a69ecaf
Showing
1 changed file
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters