<div>Hi everyone,</div>
<div> </div>
<div>I'm a new to VTK.</div>
<div> </div>
<div> </div>
<div> </div>
<div><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Tcl/capCow.tcl?root=VTK&content-type=text/plain">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Tcl/capCow.tcl?root=VTK&content-type=text/plain</a></div>
<div>
<div>Is it possible to apply above code to vtkstructuredpointsreader class.</div>
<div> </div>
<div>###</div>
<div># Read the polygonal data and generate vertex normals<br>vtkBYUReader cow<br> cow SetGeometryFileName "$VTK_DATA_ROOT/Data/Viewpoint/cow.g"<br>vtkPolyDataNormals cowNormals<br> cowNormals SetInputConnection [cow GetOutputPort]<br>
###</div>
<div> </div></div>
<div>In my sight, these codes should be changed to below</div>
<div> </div>
<div>
<div>###</div>
<div># Read the polygonal data and generate vertex normals<br>vtkStructuredPointsReader cow<br> cow SetFileName "g";</div>
<div>vtkPolyDataNormals cowNormals<br> cowNormals SetInputConnection [cow GetOutputPort]<br>###</div>
<div> </div>
<div>However, the result were below</div>
<div>###</div>
<div>ERROR: In C:\vtk\src\Filtering\vtkDemandDrivenPipeline.cxx, line 828<br>vtkStreamingDemandDrivenPipeline (0x087C5730): Input for connection index 0 on input port index 0 for algorithm vtkPolyDataNormals(0x087C58A8) is of type vtkStructuredPoints, but a vtkPolyData is required.</div>
<div>ERROR: In C:\vtk\src\Filtering\vtkDemandDrivenPipeline.cxx, line 828<br>vtkStreamingDemandDrivenPipeline (0x087C5730): Input for connection index 0 on input port index 0 for algorithm vtkPolyDataNormals(0x087C58A8) is of type vtkStructuredPoints, but a vtkPolyData is required.</div>
<div>ERROR: In C:\vtk\src\Filtering\vtkDemandDrivenPipeline.cxx, line 828<br>vtkStreamingDemandDrivenPipeline (0x087C5730): Input for connection index 0 on input port index 0 for algorithm vtkPolyDataNormals(0x087C58A8) is of type vtkStructuredPoints, but a vtkPolyData is required.</div>
<div>ERROR: In C:\vtk\src\Filtering\vtkDemandDrivenPipeline.cxx, line 828<br>vtkStreamingDemandDrivenPipeline (0x087C5730): Input for connection index 0 on input port index 0 for algorithm vtkPolyDataNormals(0x087C58A8) is of type vtkStructuredPoints, but a vtkPolyData is required.</div>
<div>###</div>
<div> </div>
<div>where did I make a mistake?</div>
<div> </div>
<div> </div>
<div>Regards,</div>
<div>Jerald</div></div>