Skip to content

Commit

Permalink
fix(CABO): Fix cell id in cell cell array buffer object
Browse files Browse the repository at this point in the history
Take cell offset into account to compute the cell ID
  • Loading branch information
bruyeret authored and finetjul committed Jun 19, 2024
1 parent 6d24013 commit f3f5f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Rendering/OpenGL/CellArrayBufferObject/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function vtkOpenGLCellArrayBufferObject(publicAPI, model) {
// Browse the cell array: the index is at the beginning of a cell
// The value of 'array' at the position 'index' is the number of points in the cell
for (let index = 0; index < size; index += array[index] + 1, cellCount++) {
func(array[index], array, index + 1, cellCount);
func(array[index], array, index + 1, cellCount + options.cellOffset);
}
model.elementCount = caboCount;
publicAPI.upload(packedVBO, ObjectType.ARRAY_BUFFER);
Expand Down

0 comments on commit f3f5f7a

Please sign in to comment.