[Sidefx-houdini-list] data type conversion
gregm at image-engine.com
Mon Mar 7 17:33:01 EST 2011
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.
More information about the Sidefx-houdini-list