[vtkusers] How to set a camera's azimuth and elevation?

Hua-Mei Chen huameichen0523 at gmail.com
Tue Sep 30 15:45:27 EDT 2008


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 
  To: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080930/48375700/attachment.htm>


More information about the vtkusers mailing list