-
Notifications
You must be signed in to change notification settings - Fork 57
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
Volume managment improvements #1798
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All geometries in the back-end are now stored as PostGIS TIN Geometry. This allows for more consistency and a cleaner API. Implemented together with @aschampion, @clbarnes, @Willp24. See #1765 Fixes #1581
Includes: - URL endpoint - API method - Test fixture - Simple test
When exporting, use both the extension of the URL and the HTTP ACCEPT header to determine which format to return. This supports both extensions with multiple formats (e.g., ASCII and binary STL) and extensions without a distinctive media type (e.g., OBJ is `text/plain`).
- Bypass DRF response accent content negotiation - Fix chunking of triangles in STL serialization - Fix accept header in tests
Add an ontology class for volumes, create class instances for all existing volumes, and relate volume class instances to volume rows via a `volume_class_instance` table. Also move the `model_of` relation from the needed classes for the tracing tool to the default project needed classes. Written with @tomka, @clbarnes, and @Willp24. See #1765.
Add front-end and back-end functionality to add annotations to a set of volumes. A new checkbox column has been added to the volume table and an "Annotate" button, that allows to annotate all selected volumes. Worked on together with @aschampion, @clbarnes and @Willp24. See #1765
Note that this also changes the response of the volumes listing endpoint from an array of objects to an array of arrays, with a separate `columns` field.
This is run now by default for the catmaid_check_db_integrity management command. The --tracing [true|false] and --volumes [true|false] command line parameters now allow to explicitly test only some parts of the database. By default all is tested. Please enter the commit message for your changes. Lines starting See #1765
Like before, the triangle check tests if each triangle has four vertices (the line is explicitly closed) and now also checks if the start and end point are actually the same.
If the 'trimesh' library is installed, the 'check_db_integretiy' management command will now also check if all triangles that make up CATMAID volumes have the same orientation (per volume). See #1765
Does checking the consistency of the handedness of the triangles rule out the handedness as the source of that 3D viewer behaviour where some of it was transparent when seen from the wrong side? Or is it that the meshes could be consistent, but still inside out? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the main changes that are discussed and referenced in issue #1765 on volume improvements. While all API changes are already noted in the changelog, we need to add some regular changelog entries on volume annotations, volume export and STL file import.