Closed StasJ closed 4 years ago
This is a documentation error that is being corrected. The corrected documentation excerpt is:
To maintain VTK data compatibility, the `index` array may be specified with cell
sizes interleaved with vertex indices in the following format: $n, id_1, ...,
id_n, m, id_1, ..., id_m$. This alternative `index` array layout can be enabled
through the `indexPrefixed` flag (in which case, the `cell.type` parameter
should be omitted).
------------------- ------------------ -------- ---------------------------------------
Type Name Default Description
------------------- ------------------ -------- ---------------------------------------
uint32[] / uint64[] index [data] array of indices (into the
vertex array(s)) that form cells
bool indexPrefixed false indicates that the `index` array is
provided in a VTK-compatible format,
where the indices of each cell are
prefixed with the number of vertices
So please try setting indexPrefixed
as a bool, and passing your data through index
.
If you try to create a volume using
indexPrefixed
as an alternative toindex
, you get an error message that the parameterindex
is missing even thoughindexPrefixed
is supposed to replace it.