Skip to content
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

Preserve topology while rounding area vertex coordinates before MC #36

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

mlt
Copy link
Contributor

@mlt mlt commented Jan 18, 2024

While preparing for marching cubes run, areas are transformed and then their vertex coordinates are rounded to integers. However, the current implementation ignores polygon winding. This effectively results in filled holes.
trakem2_no_holes
I suggest to use Path2D to accomplish this.
trakem2_holes

@ctrueden ctrueden merged commit a1025ee into trakem2:master Jan 18, 2024
1 check passed
@ctrueden
Copy link
Member

Awesome, thanks!

@ctrueden
Copy link
Member

I released TrakEM2 v1.3.10 including this change, and updated the version in pom-scijava (scijava/pom-scijava@fb96bdb). The next release of Fiji, planned for later this winter, will include it.

@acardona
Copy link
Member

acardona commented Jan 18, 2024 via email

@mlt mlt deleted the keep-topo branch January 18, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants