<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>I have problems configuring the output of my filter, the filter is a subclass of vtkDataSetToStructuredGrid and setting the output looks as following:<br><br>//setting the new point data<br>vtkSmartPointer&lt;vtkFloatArray&gt; new_scalars = vtkSmartPointer&lt;vtkFloatArray&gt;::New();<br><br>double inPtr[numOfTuples + 1]; //pointer for casting the values actually to double, so I can perform arithmetic operations with them<br>&nbsp;float outPtr[numOfTuples + 1];<br>//calculating ..<br><br>new_scalars -&gt; SetArray(outPtr,numOfTuples,1);<br><br><br><br>output -&gt; SetDimensions(dims);<br>&nbsp;&nbsp;&nbsp; output -&gt; SetPoints(pts); //Now the points are set<br>&nbsp;&nbsp;&nbsp; output -&gt; GetPointData() -&gt; SetScalars(new_scalars);<br>&nbsp;&nbsp;&nbsp; output -&gt; Squeeze();<br><br><br>dims are the dimensions of the input, which is a RectilinearGrid or a StructuredGrid, new_scalars is a vtkFloatArray. I believe that the "output-&gt;GetPointData() -&gt;SetScalars(new_scalars)"-line is causing the problem, because I get the following error messages:<br><br>Program received signal SIGSEGV, Segmentation fault.<br>vtkFieldData::GetActualMemorySize <br>at C:/ParaviewSource/ParaView3/VTK/Filtering/vtkFieldData.cxx:577<br>size +=this-&gt;Data[i]-&gt;GetActualMemorySize();<br><br>Backtracing, functions in vtkPVDataInformation and vtkSelfConnections are called, <br>so I guess, this does not actually happen in my source code but in the rendering pipeline. As I did not change anything in the rendering pipeline, there must be an allocation or a call in my code with incorrect arguments, but I do not really know where to look for the error. <br>Does anyone have an idea?<br><br>Thx,<br>NH<br><br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>