[vtkusers] ParallelProjection Scale

Kevin H. Hobbs hobbsk at ohiou.edu
Thu Mar 4 11:49:15 EST 2010


On 03/03/2010 06:45 AM, Nicola Creati wrote:
> Hello,
> I need to fit my data, along the longest dimension (x or y),  to the
> render window in parallel projection mode. I have tried to read in the
> VTK source code for a solution but I was not able to find a way to
> calculate the best parallel scale that will fit data. How is calculated
> the parallel scale? How can it be calculated the right parallel scale to
> get the fit?
> 
> Thanks,
> 
> Nicola

I would start by getting the bounds of the data :

bounds[6];
data->GetBounds( bounds );

see :

http://www.vtk.org/doc/nightly/html/classvtkDataSet.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100304/6de715eb/attachment.pgp>


More information about the vtkusers mailing list