Skip to content

feat: add a mesh‑doctor action to compute a mesh’s Euler characteristic#239

Merged
jafranc merged 5 commits intomainfrom
feat/bd713/euler
Mar 5, 2026
Merged

feat: add a mesh‑doctor action to compute a mesh’s Euler characteristic#239
jafranc merged 5 commits intomainfrom
feat/bd713/euler

Conversation

@bd713
Copy link
Contributor

@bd713 bd713 commented Mar 3, 2026

No description provided.

@jafranc jafranc added the test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI label Mar 3, 2026
Copy link
Collaborator

@jafranc jafranc left a comment

Choose a reason for hiding this comment

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

Great work !!

Copy link
Collaborator

Choose a reason for hiding this comment

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

👀 quick fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mypy was requesting this modification due to the function potentially returning None.
Not sure why it wasn't picked up by the CI earlier.

point_ids = tuple( sorted( [ face.GetPointId( j ) for j in range( num_pts ) ] ) )
face_list.append( point_ids )

# Use numpy unique for deduplication (faster than set)
Copy link
Collaborator

Choose a reason for hiding this comment

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

how faster is it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

~20% on the case I used.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Wow, that certainly scale as number of duplicates, where sorting and non-hashing is more efficient. But still impressive.

@jafranc jafranc merged commit b59ff7f into main Mar 5, 2026
56 checks passed
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