i am using the activiz 9.4, and i want to use a Parallel.For to create multi vtkCell in the same time,the code like this :
Parallel.For(0, input.GetNumberOfCells(), i =>
{
var temp = vtkCell.New();
});
input is a vtkPolyData, it throw a “error: IndexedConstructors table already has a non-null entry at mteIndex 18”. But if i use vtkPolyData:
Parallel.For(0, input.GetNumberOfCells(), i =>
{
var temp = vtkPolyData.New();
});
it works. Is it a bug or a feature?