[vtkusers] Making 2D image inside curvy tube.

Takuji Kobayashi 5222xms at gmail.com
Thu Sep 13 13:36:11 EDT 2007


Hi,

I'm trying to make 2D image of inside of curvy tube expressed by
example Medical1.cxx.

I want to move "vtkCamera" into a tube.
But, I can't move camera into a tube.

Now, I'm trying to use vtkCamera->Setposition and SetFocalPoint to move camera.
I set the coordinate of point where I want to make image into
SetFocalPoint or Setposition.
But I can't move camera to the point.

How can I make 2D image inside tube?
The code is below.

--------------------------------------------------------------
vtkCamera *aCamera = vtkCamera::New();
    aCamera->SetViewUp (0, 0, -1);
    aCamera->SetPosition (193, 173, 1);
    aCamera->SetFocalPoint (193, 173, 50);// I want make the image of
this point.

  aRenderer->AddActor(outline);
  aRenderer->AddActor(skin);
  aRenderer->SetActiveCamera(aCamera);
  aRenderer->ResetCamera ();
  aCamera->Dolly(1.5);

 aRenderer->SetBackground(1,1,1);
  renWin->SetSize(640, 480);

  aRenderer->ResetCameraClippingRange ();


  iren->Initialize();
  iren->Start();
-------------------------------------------------------------------

Regards,
--
Takuji KOBAYASHI
Tecnologico de Monterrey



More information about the vtkusers mailing list