Hi, some member functions take pointers as arguments like vtkPointSet's method SetPoints :
virtual void SetPoints (vtkPoints *)
However, C# doesn't do pointers so the following code errors,
vtkPoints p = new vtkPoints();
vtkPointSet pts = new vtkPointSet();
Could not downcast pointer to native class.
You need to insert points to vtkPoints before you call SetPoints()
vtkPoints points = new vtkPoints();
for (int z = 0; z < vecs.Length; z++)
vtkPolyData pd = new vtkPolyData();
vecs - array of Vectors(My class)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.