[vtkusers] RE: how to obtain front,top,left,right,top and bottom view of a

Sergios Goudanis sergios at mail.ntua.gr
Wed Feb 25 07:06:39 EST 2004


I think this is it.

float *bounds = this->yourActor->GetBounds();


float Xfront = (bounds[0]+bounds[1])/2.;
float Yfront = (bounds[2]+bounds[3])/2.;
float Zfront = (bounds[4]+bounds[5])/2.;
ren->GetActiveCamera()->SetFocalPoint(Xfront,Yfront,Æfront);
Xfront = Xfront - YouChooseADistance;
ren->GetActiveCamera()->SetPosision(Xfront,Yfront,Æfront);
renwin->render;

This makes the front side of the object visible.


-- 
Best Regards

Sergios Goudanis

-----------------
PPC S.A.
Thermal Projects
Eng-Constructions Dept.
30-32 Aristotelous St.
10433 Athens GREECE
Tel: +306944355465
e-mail: goudanis at dmkt.dei.gr





More information about the vtkusers mailing list