morzh Posted September 22, 2012 Share Posted September 22, 2012 Hi, I want to build my own polygon grid, using 3 arrays of floats: ptX, ptY, ptZ. Is there any way to add all my points to gdp by one step without doing loop. I know, I could build particle system with some particles and add this particle primitive to gdp and then delete particle primitive and i'll get my points. Or i could build grid using gdp->polyGrid(......). BUT in this case i shloud iterate over all points and i need the index of each point to assign p_ph.value(pt).y() = ptY[ index ][/CODE]What will you do if you will need to build a polygon grid form 3 arrays of floats ? Quote Link to comment Share on other sites More sharing options...
morzh Posted September 22, 2012 Author Share Posted September 22, 2012 (edited) of course, i have divisionsX, divisionsZ, grid is in XZ plane Edited September 22, 2012 by morzh Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted September 22, 2012 Share Posted September 22, 2012 What will you do if you will need to build a polygon grid form 3 arrays of floats ? Iterate thru it. That's how we work with collections. Quote Link to comment Share on other sites More sharing options...
morzh Posted September 25, 2012 Author Share Posted September 25, 2012 Thank you, mantragora. I'm not a qualified person, so if it is possible, could you give more detailed answer ? Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted September 25, 2012 Share Posted September 25, 2012 Thank you, mantragora. I'm not a qualified person, so if it is possible, could you give more detailed answer ? http://en.wikipedia.org/wiki/Iteration Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.