-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Move VTK utilities from geos-posp to geos-mesh #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Move VTK utilities from geos-posp to geos-mesh #75
Conversation
@@ -25,11 +25,12 @@ classifiers = [ | |||
requires-python = ">=3.10" | |||
|
|||
dependencies = [ | |||
"vtk >= 9.3", | |||
"vtk == 9.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for using specificaly 9.3 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems Paraview 5.13 cannot open correctly VTU files generated by VTK > 9.3 at the moment.
As a lot of GEOS users use Paraview, I think it's better to stay with this version of the package as long as it is not handled...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good job to set unit tests up for all utilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utilities from geos.mesh.utils.filters and geos.mesh.utils.helpers may be gathered in thematic modules. For instance, a module may contains all attribute helpers (need to set the name "attribute" or "array") and another module may contains other utilities (including getBounds*, to_vtk_id_list, vtk_iter, extractBlock, mergeBlocks, computeCellCenterCoordinates, extractSurfaceFromElevation).
if keepPartialAttributes: | ||
fillAllPartialAttributes( input, False ) | ||
fillAllPartialAttributes( input, True ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is happening in this part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are filling both cells (False
) and point attributes (True
)
from vtkmodules.vtkCommonDataModel import vtkUnstructuredGrid, vtkPolyData, vtkPlane | ||
from vtkmodules.vtkFiltersCore import vtk3DLinearGridPlaneCutter | ||
|
||
__doc__ = """ Generic VTK utilities.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may explain a bit more what type of functions this file (same for other files) contains.
Close #69
vtk
was causing conflict issues in package import.geos-mesh
package to ci typing-check.