Skip to content

Avoid negative array size when drawing bounding boxes - #38

Merged
ctrueden merged 1 commit into
fiji:masterfrom
K-Meech:bounding-box-fix
Oct 6, 2025
Merged

Avoid negative array size when drawing bounding boxes#38
ctrueden merged 1 commit into
fiji:masterfrom
K-Meech:bounding-box-fix

Conversation

@K-Meech

@K-Meech K-Meech commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

Closes #35

This small fix prevents NegativeArraySizeException when drawing the bounding box of certain meshes. E.g. see the corresponding issue (#35) for an example of a planar mesh. This fix comes from a section of the other open pull request on this repo: #22

@ctrueden - do let me know if any changes are needed to this PR - happy to update as needed! I've tried to make the fix as minimal as possible, as I know the 3D viewer is old code + isn't updated often. No problem if it can't be merged though - thanks.

@ctrueden

ctrueden commented Oct 6, 2025

Copy link
Copy Markdown
Member

@K-Meech Thank you very much!

@ctrueden
ctrueden merged commit c2371eb into fiji:master Oct 6, 2025
1 check passed
@K-Meech

K-Meech commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

@ctrueden - I just wanted to check when you think this fix might be available in Fiji? Fiji latest + stable are still using 3D viewer v5.0.0 (as far as I can tell), and this fix was included in the v5.0.1 release (made in October last year)

No rush - but this fix would solve a long running issue in one of my plugins, so would be great to know a rough timeline. Thanks!

@ctrueden

Copy link
Copy Markdown
Member

@K-Meech Sorry for the long delay on this. I have now uploaded 3D_Viewer 5.0.1 to the Fiji-Latest update site.

@K-Meech

K-Meech commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

Great - thanks @ctrueden !

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.

NegativeArraySizeException for planar meshes

2 participants