[Sidefx-houdini-list] data type conversion
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.
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 myData myData (float3)
> I want: myData[x] myData[y] myData[z] (vector)
> 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.
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list