[Paraview] problem configuring the output of a filter

2008-09-19 Thread Natalie Happenhofer
Hi! I have problems configuring the output of my filter, the filter is a subclass of vtkDataSetToStructuredGrid and setting the output looks as following: //setting the new point data vtkSmartPointervtkFloatArray new_scalars = vtkSmartPointervtkFloatArray::New(); double inPtr[numOfTuples +

Re: [Paraview] problem configuring the output of a filter

2008-09-19 Thread Burlen Loring
Natalie Happenhofer wrote: Hi! I have problems configuring the output of my filter, the filter is a subclass of vtkDataSetToStructuredGrid and setting the output looks as following: //setting the new point data vtkSmartPointervtkFloatArray new_scalars = vtkSmartPointervtkFloatArray::New();

Re: [Paraview] problem configuring the output of a filter

2008-09-19 Thread Natalie Happenhofer
Date: Fri, 19 Sep 2008 08:59:19 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: paraview@paraview.org Subject: Re: [Paraview] problem configuring the output of a filter Natalie Happenhofer wrote: Hi! I have problems configuring the output of my filter, the filter is a subclass

Re: [Paraview] problem configuring the output of a filter

2008-09-19 Thread Burlen Loring
automatically allocate the necessary memory for my new_scalars array.. thx, NH Date: Fri, 19 Sep 2008 08:59:19 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: paraview@paraview.org Subject: Re: [Paraview] problem configuring the output of a filter Natalie Happenhofer wrote: Hi! I have

Re: [Paraview] problem configuring the output of a filter

2008-09-19 Thread Mike Jackson
Why don't you just use vtkDoubleArray instead of double outPtr[..] ? vtkFloatArray* new_scalars = vtkFloatArray::New(); // Assuming in is a temporary variable not needed after this so we use a smart pointer vtkSmartPointervtkDoubleArray in = vtkSmartPointervtkDoubleArray::New(); float*