[vtkusers] a surprise questuion about show some clouds!
David Doria
daviddoria at gmail.com
Fri Jan 6 20:48:08 EST 2012
On Fri, Jan 6, 2012 at 7:54 PM, seaer <wuweitianye at yahoo.com.cn> wrote:
>
> hello all!
> I used VTK(5.4 ) to show some points on QVTKWidget with QT(4.7.3), a
> surprise questuion happened!
> there are two different input data:
> // a.txt (x,y,z)
> 1.021 1.548 93.725
> 1.011 1.555 93.735
> 1.023 1.588 93.711
> 1.009 1.591 93.726
> 1.001 1.601 93.732
>
> http://vtk.1045678.n5.nabble.com/file/n5126976/Screenshot.png
>
> // b.txt (x,y,z)
> 607645.021 3623761.548 93.725
> 607645.011 3623761.555 93.735
> 607645.023 3623761.588 93.711
> 607645.009 3623761.591 93.726
> 607645.001 3623761.601 93.732
> http://vtk.1045678.n5.nabble.com/file/n5126976/Screenshot-1.png
>
> in my code, i has used renderer->ResetCamera();
> input aa.txt , vtkPoints have 5 points. input bb.txt ,vtkPoints also have 5
> poins. but when show inputting bb.txt data ,why viewPort only a point
> .for me, I didn't understand some VTK mechanisms about this.
> how can i do good about this.
> thanks!
You'll have to show us some code. I'd suggest doing this in a normal
vtkRenderWindow (not using QVTK) for the example you send us. Are you
using vtkSimplePointsReader to read the files?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader
David
More information about the vtkusers
mailing list