[Sidefx-houdini-list] data type conversion

François Duchesneau sidefx at trinix.ca
Mon Mar 7 18:47:37 EST 2011


My guess is that vop (or vex) is the fastest way to do it. With the Add 
Attribute Vop, you've got the "Type Modifier" at the bottom to control 
whether it's a vector or 3 floats.

François

Greg Massie wrote:
> Hey All,
>
> What's the most efficient way of recasting one data type to another. I have two examples I'm trying to deal with:
>
> I have:  myData[0] myData[1] myData[2]    (float3)
> I want:  myData[x] myData[y] myData[z]     (vector)
>
> also:
>
> I have myData of type float and I want myData of type int.
>
> The data is coming from an external source and is a lot of points so ideally I want to do it with as little copying of data as possible.
>
> Greg
>
>
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
>   



More information about the Sidefx-houdini-list mailing list