<div>I am trying to run the test programs for the SplineDrivenImageSlicer from here:</div><div><a href="http://www.insight-journal.org/browse/publication/838/">http://www.insight-journal.org/browse/publication/838/</a></div>
<div><br></div><div>I have compiled the code, however when I run the testFrenetSerretFrame program</div><div>it fails with this error:</div><div><br></div><div>vtkStreamingDemandDrivenPipeline (00C85DD0): Input for connection index 0 on input port index 0 for algorithm vtkFrenetSerretFrame(00C816E8) is NULL, but a vtkPolyData is required.</div>
<div><br></div><div>when frenetSerretFilter->Update( ); is called to process the data.</div><div><br></div><div>The vtkFrenetSerretFrame class is derived from vtkPolyDataAlgorithm.</div><div><br></div><div>Here is the code:</div>
<div>int main(int argc, char** argv )</div><div>{</div><div> // Generate a circle:</div><div> vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New( );</div><div> vtkSmartPointer<vtkCellArray> line = vtkSmartPointer<vtkCellArray>::New( );</div>
<div> line->InsertNextCell( 360 );</div><div> vtkIdType ptId;</div><div> for( int i = 0; i < 360; i++)</div><div> {</div><div> ptId = points->InsertNextPoint( cos( i*2*vtkMath::DoublePi()/360.0 ), sin( i*2*vtkMath::DoublePi()/360.0 ), 0 );</div>
<div> line->InsertCellPoint( ptId );</div><div> }</div><div><br></div><div> vtkSmartPointer<vtkPolyData> circle = vtkSmartPointer<vtkPolyData>::New( );</div><div> circle->SetLines( line );</div>
<div> circle->SetPoints( points );</div><div> circle->PrintSelf(cout, *(vtkIndent::New()));</div><div> </div><div> // tested object</div><div> vtkSmartPointer<vtkFrenetSerretFrame> frenetSerretFilter;</div>
<div> frenetSerretFilter = vtkSmartPointer<vtkFrenetSerretFrame>::New( );</div><div> </div><div> vtkDataObject *da = static_cast<vtkDataObject *>(circle);</div><div> frenetSerretFilter->SetInput( circle );</div>
<div> frenetSerretFilter->Update( );</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><snip></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div>I am using VTK 5.8 on Win7. I have tried VTK 5.6.1 with the same result. I am new to VTK, so maybe</div>
<div>the problem is obvious. I assumed this was a working example. I think the line and circle items are</div><div>being constructed correctly - but I am still poring over the fairly large number of members/classes</div><div>
in each. It is very hard to look at the debugger information and know if all the 0's and ???'s indicate</div><div>a problem or not.</div><div><br></div><div>Any suggestions as to what may be wrong here?</div><div>
<br></div>