-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use a standard mesh/facet format #1
Comments
Changing package hierarchy to net.imagej.mesh
This discussion is getting revived with @skalarproduktraum. Scenery (ThreeDViewer) as well as most of the computer graphics world + mesh file formats use vertices and indices to represent meshes. So when we read/write meshes we have to use a data structure based on vertices/indices. DefaultMesh in imagej-ops uses a more convenient representation because the mesh is used in more complex geometric calculations. It would be a pain, and probably even inefficient to use raw arrays of vertices and indices for this. However, it is pretty painful to use DefaultMesh for file I/O as it stands. We're floating the idea of using a data structure with just indices and vertices (and accompanying vertex data like texture coordinates and such) that closely matches Scenery's HasGeometry class. Then classes like DefaultMesh will need conversion methods to generate/consume arrays of vertices and indices. |
Is it possible for the |
The 2 representations are:
Relevant points:
My current suggestion is:
|
However the result of this discussion turns out, a mesh should at least be a net.imagej.Data |
Before things get too carried away in this library, we need to use a uniform mesh/facet data structure (at least the IJ-Ops DefaultMesh implementation, but hopefully this affords the opportunity to switch to a new implementation).
The text was updated successfully, but these errors were encountered: