[vtkusers] How to set a camera's azimuth and elevation?
Amy Squillacote
ahs at cfdrc.com
Tue Sep 30 16:16:00 EDT 2008
Hi Chen,
In vtkCamera, there are Roll, Azimuth, and Elevation methods that rotate
the camera by the angle specified. I'm not sure why there is both a Roll
method and a SetRoll method.
- Amy
Hua-Mei Chen wrote:
>
> Hi all,
>
> I am wondering how to set a camera's azimuth and elevation. There
> is a SetRoll() method in vtkCamera to set the roll of a camera.
> However, no similar methods exist for setting the azimuth and
> elevation. Does anyone know why? And how do I achieve my goal using
> other methods? Thank you.
>
>
> Chen
>
>
>
>
>
> ----- Original Message -----
>
> *From:* Anestis Koutsoudis <mailto:akoutsou at ipet.gr>
> *To:* vtkusers at vtk.org <mailto:vtkusers at vtk.org>
> *Sent:* Monday, September 29, 2008 11:03 AM
> *Subject:* [vtkusers] Trying to use vtkSurfaceReconstructionFilter
>
> Hi Dominik,
>
> Thanks for answer but the name of my vtkSurfaceReconstructionFilter
> instance (delaunay)might be misleading but I think thereisn't any
> SetAlpha parameter for the vtkSurfaceReconstructionFilter
>
> Cheers
>
> I have been trying to feed an instance of
> vtkSurfaceReconstructionFilter
> with a vtkPolyData that has been assigned a vtkPoints. Here is the
> following code.
> The problem is that it always returns a CUBE not an approximation
> even erroneous
> of the point cloud.
>
> Any ideas on this?
>
> Cheers
>
> vtkPoints *points = vtkPoints::New();
> fp=fopen(argv[1],"r");
> int counter = 0;
> while(!feof(fp)) {
> fscanf(fp,"%e,%e,%e\n", &x,&y,&z); //
> Read an X,Y,Z points file
> points->InsertPoint(counter,x,y,z);
> counter++;
> }
> fclose(fp);
>
> points->Modified();
> vtkPolyData *pData = vtkPolyData::New();
> pData->SetPoints(points);
> pData->Update();
>
> vtkSurfaceReconstructionFilter *delaunay =
> vtkSurfaceReconstructionFilter::New();
> delaunay->SetInput(pData);
> delaunay->SetSampleSpacing(0.5);
> delaunay->Update();
>
> ------------------------------------------------------------------------
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list