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 +
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();
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
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
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*