You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs provide an example of converting that is a Serialization of a Mesh . However, the definition of the Cell is never specified, even in the section 4.3.2 Inserting Cells. To make my question concrete, consider the provided example of the 'cow.vtk' format converted to 'cow.iwm.cbor':
The cow.vtk provides vertex indices for quads (4 vertices) and triangles (3 vertices)
However, the cow.iwm.cbor cells includes an additional element that in this example is always 4 for quads and 2 for triangles. What is the purpose of the element - for this example it just makes the file size larger, but presumably it has the potential to have other values. While I can write a reader for the provided example, I fear it will be fragile if I do not know what this value is supposed to mean. Is 2 a constant for TriangleCell
If this is the case, is there any reason the quads are not listed as QUADRILATERAL_CELL and not POLYGON_CELL types? It does seem that for VERTEX_CELL...QUADRILATERAL_CELL the number of indices is explicit, so this seems to lead to large file sizes than necessary. I understand there are always tradeoffs in file formats for consistency across types versus efficiency, I just want to make sure I understand the logic.
The text was updated successfully, but these errors were encountered:
The docs provide an example of converting that is a Serialization of a Mesh . However, the definition of the Cell is never specified, even in the section 4.3.2 Inserting Cells. To make my question concrete, consider the provided example of the 'cow.vtk' format converted to 'cow.iwm.cbor':
The cow.vtk provides vertex indices for quads (4 vertices) and triangles (3 vertices)
However, the cow.iwm.cbor cells includes an additional element that in this example is always 4 for quads and 2 for triangles. What is the purpose of the element - for this example it just makes the file size larger, but presumably it has the potential to have other values. While I can write a reader for the provided example, I fear it will be fragile if I do not know what this value is supposed to mean. Is 2 a constant for TriangleCell
Based on 4.3.8 Iterating Through Cells my best guess is that this is the enum for cell type:
If this is the case, is there any reason the quads are not listed as
QUADRILATERAL_CELL
and notPOLYGON_CELL
types? It does seem that for VERTEX_CELL...QUADRILATERAL_CELL the number of indices is explicit, so this seems to lead to large file sizes than necessary. I understand there are always tradeoffs in file formats for consistency across types versus efficiency, I just want to make sure I understand the logic.The text was updated successfully, but these errors were encountered: