58 vtkInformationVector **inputVector,
59 vtkInformationVector *outputVector) {
61 vtkPointSet *inputDataSet = vtkPointSet::GetData(inputVector[0]);
62 vtkTable *inputTable = vtkTable::GetData(inputVector[1]);
63 vtkPointSet *output = vtkPointSet::GetData(outputVector);
65 const SimplexId numberOfPoints = inputDataSet->GetNumberOfPoints();
66#ifndef TTK_ENABLE_KAMIKAZE
67 if(numberOfPoints <= 0) {
73 vtkDataArray *xarr = XColumn.empty()
75 : vtkDataArray::SafeDownCast(
76 inputTable->GetColumnByName(XColumn.data()));
77 vtkDataArray *yarr = YColumn.empty()
79 : vtkDataArray::SafeDownCast(
80 inputTable->GetColumnByName(YColumn.data()));
81 vtkDataArray *zarr = ZColumn.empty()
83 : vtkDataArray::SafeDownCast(
84 inputTable->GetColumnByName(ZColumn.data()));
86 if(xarr ==
nullptr or yarr ==
nullptr or zarr ==
nullptr) {
90 if(xarr->GetNumberOfTuples() != numberOfPoints
91 or yarr->GetNumberOfTuples() != numberOfPoints
92 or zarr->GetNumberOfTuples() != numberOfPoints) {
93 printErr(
"number of points on inputs mismatch.");
96 if(xarr->GetDataType() != yarr->GetDataType()
97 or xarr->GetDataType() != zarr->GetDataType()) {
98 printErr(
"input columns has different data types.");
103 points->SetNumberOfPoints(numberOfPoints);
105 switch(xarr->GetDataType()) {
112 output->ShallowCopy(inputDataSet);
113 output->SetPoints(points);