Skip to content

feat: add boundaryDistance option to checkInternalTags#244

Open
bd713 wants to merge 2 commits intomainfrom
feat/bd713/safetyMargin
Open

feat: add boundaryDistance option to checkInternalTags#244
bd713 wants to merge 2 commits intomainfrom
feat/bd713/safetyMargin

Conversation

@bd713
Copy link
Copy Markdown
Contributor

@bd713 bd713 commented Mar 23, 2026

WIP

@bd713 bd713 self-assigned this Mar 23, 2026
@bd713 bd713 requested a review from jhuang2601 March 23, 2026 22:28
@jafranc jafranc self-requested a review March 24, 2026 14:53
@jafranc jafranc added flag: ready for review test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI labels Mar 26, 2026
return { 'bottom': bottomSurface, 'top': topSurface }


def __getBoundarySurfaceForMode( classified: Dict[ str, vtk.vtkPolyData ], mode: str ) -> vtk.vtkPolyData:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could mode be a StrEnum ?

cell = boundarySurface.GetCell( i )

# Get min/max Z of all points in the cell
minZ = float( 'inf' )
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

as numpy is imported, why not using it here ?

return volumeNeighbors


def __extractVolumeMeshBoundary( mesh: vtk.vtkUnstructuredGrid, volumeCells: set[ int ] ) -> vtk.vtkPolyData:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not vtkDataSetSurfaceFilter and its fast mode ?

return boundarySurface


def __classifyBoundarySurfaceByLocation( boundarySurface: vtk.vtkPolyData ) -> Dict[ str, vtk.vtkPolyData ]:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am more use to sort by normal variation with vtkPolyDataNormals() but isn't this also selecting part of your other boundary faces unless your threshold is lower than the lowest element radius on those ?

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

Labels

flag: ready for review test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI type: feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants