Jump to content

adding points to gdp


morzh

Recommended Posts

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 ?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...