Skip to content

Avoid negative array size when drawing bounding boxes#38

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

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

Conversation

@K-Meech
Copy link
Contributor

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

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
Copy link
Member

ctrueden commented Oct 6, 2025

@K-Meech Thank you very much!

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

K-Meech commented Jan 10, 2026

@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
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
Copy link
Contributor Author

K-Meech commented Jan 19, 2026

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