Hello everyone
I’m trying to create streamline for both Scalar and Vector array.
I have no issue when my data array is scalar but I have issue when handling Vector.
My issue is that for Vector, after getting PolyData from StreamTracer output, the number of array from Point Data return 0.
Below is the code I’m using.
Could you please tell me what I’m doing wrong?
ERROR: In C:\Users\Lucas\Projects\Unity\CI\VTK-9.0.1\Common\Misc\vtkFunctionParser.cxx, line 238
vtkFunctionParser (00000248BDC2C920): multiply expecting either 2 scalars or a scalar and a vector
ERROR: In C:\Users\Lucas\Projects\Unity\CI\VTK-9.0.1\Common\Misc\vtkFunctionParser.cxx, line 133
vtkFunctionParser (00000248BDC2C920): Parse: Error deciding between ambiguous operators
ERROR: In C:\Users\Lucas\Projects\Unity\CI\VTK-9.0.1\Common\Misc\vtkFunctionParser.cxx, line 238
vtkFunctionParser (00000248BDC2C920): multiply expecting either 2 scalars or a scalar and a vector
ERROR: In C:\Users\Lucas\Projects\Unity\CI\VTK-9.0.1\Common\Misc\vtkFunctionParser.cxx, line 133
vtkFunctionParser (00000248BDC2C920): Parse: Error deciding between ambiguous operators
Warning: In C:\Users\Lucas\Projects\Unity\CI\VTK-9.0.1\Filters\Core\vtkArrayCalculator.cxx, line 348
vtkArrayCalculator (0000024952EBFBE0): An error occurred when parsing the calculator’s function. See previous errors.
For 2 Vectors, correct operator isn’t ‘*’ but ‘.’ so my function will be
Function = “iHat.” + FeatureName + “+jHat.” + FeatureName + “+kHat.” + FeatureName;
however when running the application I’ve got the following error lot of time before getting the result
ERROR: In c:\users\lucas\projects\unity\ci\vtk-9.0.1\common\core\vtkGenericDataArray.txx, line 700
vtkDoubleArray (0000024950D55A70): Number of components for input and output do not match.
Source: 1
Destination: 3
Thank you for your help.
I’m still getting the following error in the output windows
ERROR: In c:\users\lucas\projects\unity\ci\vtk-9.0.1\common\core\vtkGenericDataArray.txx, line 700
vtkDoubleArray (0000021810CD5DA0): Number of components for input and output do not match.
Source: 1
Destination: 3