Hi just a simple n00b question.
I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices).
example string: v 0.200006 -0.093641 0.584690
I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690}
I can get rid of the 'v' and the space at the beginning, but I need to split the three vert position values using the spaces in the middle. That would probably go into an array, which I would write to a file after modification.
Thanks for your time :)
Pseudo-code:
function SplitVerts(data){
string OutData = data
OutData = OutData.remove(first 2 chars)
OutData = OutData.split(" ")
OutData = string(outdata)
...
return OutData
}