Skip to content

refactor: Move the paraview plugin and create a VTK filter for CreateConstantAttributePerRegion #122

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

Open
wants to merge 67 commits into
base: main
Choose a base branch
from

Conversation

RomainBaville
Copy link
Contributor

@RomainBaville RomainBaville commented Aug 6, 2025

In the context of the repository refactoring, this will consists in three main tasks:

  • Move the Paraview plugin to geos-pv and adapte it to use the vtk filter
  • Create a VTK filter independant of the paraview plugin in geos-mesh
  • Add the possibility to choose the number and the name of component and the value per component

close #106

RomainBaville and others added 30 commits June 24, 2025 16:48
@RomainBaville RomainBaville self-assigned this Aug 6, 2025
Base automatically changed from RomainBaville/feature/update_geos-mesh_utils to main August 6, 2025 18:24
@paloma-martinez paloma-martinez changed the title feat: Move the paraview plugin and create a VTK filter for CreateConstantAttributePerRegion refactor: Move the paraview plugin and create a VTK filter for CreateConstantAttributePerRegion Aug 7, 2025
Comment on lines +277 to +291
def _setPieceRegionAttribute( self: Self ) -> None:
"""Set the attribute self.onPoints and self.onBoth.

self.onPoints is True if the region attribute is on points, False if it is on cells, None otherwise.

self.onBoth is True if a region attribute is on points and on cells, False otherwise.
"""
self.onPoints: Union[ bool, None ] = None
self.onBoth: bool = False
if isAttributeInObject( self.mesh, self.regionName, False ):
self.onPoints = False
if isAttributeInObject( self.mesh, self.regionName, True ):
if self.onPoints is False:
self.onBoth = True
self.onPoints = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at FillPartialArrays implementation of the same method, this one seems misleading, especially using the term "set" when no argument is given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create vtk filter from PVCreateConstantAttributePerRegion in geos-mesh move PV plugin to geos-pv
2 participants