Vector Field Point Cloud Export#35
Open
bzrudski wants to merge 5 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
==========================================
+ Coverage 92.94% 93.00% +0.05%
==========================================
Files 11 11
Lines 1843 1858 +15
==========================================
+ Hits 1713 1728 +15
Misses 130 130 ☔ View full report in Codecov by Sentry. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In VectoRose, vector fields can currently be exported as NumPy arrays containing spatial coordinates and vector components using functions included in NumPy (e.g.,
numpy.save). While these files are useful, they cannot be directly imported into third-party software to be visualised. This PR introduces a new functionvectorose.plotting.create_pointcloudthat produces a point cloud representation of a vector field. Points are placed at each vector location. Each point has three values associated with it:These use of RGB colour mapping is inspired by the following work by Reznikov et al. (2022).
The point clouds, represented as
pyvista.PolyDataobjects can then be exported in a variety of formats, such as VTK mesh (*.vtk).Major steps
vectorose.plottingvectorose.plottingdocstringstests/test_plotting