The Mesh class supports both triangle and quad meshes. The type is inferred through the "index" array being of type vec3ui or vec4ui. However, when no data is present, the error message only mentions vec4ui. This change is related to an issue from Ospray Anari.
I've added a check to see if any data is present beforehand. If not, the error message now states that vec3ui or vec4ui is allowed.
Old message:
[ERROR] ospray::Mesh must have 'index' 1D array with element type vec4ui
New message:
[ERROR] ospray::Mesh must have 'index' 1D array with element type vec3ui for triangle meshes or vec4ui for quad meshes.
The Mesh class supports both triangle and quad meshes. The type is inferred through the "index" array being of type vec3ui or vec4ui. However, when no data is present, the error message only mentions vec4ui. This change is related to an issue from Ospray Anari.
I've added a check to see if any data is present beforehand. If not, the error message now states that vec3ui or vec4ui is allowed.
Old message: [ERROR] ospray::Mesh must have 'index' 1D array with element type vec4ui
New message: [ERROR] ospray::Mesh must have 'index' 1D array with element type vec3ui for triangle meshes or vec4ui for quad meshes.