[vtkusers] raytracing a point cloud to generate perspective projection

David Doria daviddoria+vtk at gmail.com
Tue Aug 3 11:13:22 EDT 2010


On Tue, Aug 3, 2010 at 10:29 AM, Jothy <jothybasu at gmail.com> wrote:
> I don't really understand your problem, but you can have a look at
>
> http://www.cmake.org/Wiki/VTK/Examples/SimpleOperations/ProjectPointPlane
>
> and also, you can use camera settings to project the points in the scene at
> a given distance.Something like this
>
> Renderer.GetActiveCamera().SetPosition([0,0,1000])
>  Renderer.GetActiveCamera().SetFocalPoint(0,0,0)
>  Renderer.GetActiveCamera().Pitch(90)
>
>
> Jothy
>


You might also want to look at
http://www.cmake.org/Wiki/VTK/Examples/PolyData/PerspectiveTransform

Thanks,

David



More information about the vtkusers mailing list