[vtkusers] int instead of vtkIdType

Kevin H. Hobbs hobbsk at ohiou.edu
Mon Feb 16 08:10:18 EST 2009


David Doria wrote:
> It seems that vtkIdType is the expected type for indices. ie
> void GetTupleValue (vtkIdType i, unsigned char *tuple)
>
> I usually do
>
> unsigned char *tuple;
>
> for(int i = 0; i < something; i++
>    GetTupleValue (i, tuple);
>
> Is this a bad idea?
>   
Use vtkIdType so that your code will automatically switch to 64 bit IDs 
when VTK is configured to use them.

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


More information about the vtkusers mailing list