Jump to content

How to the insert point


Recommended Posts

There's lots of ways to do that. What are the points for? What's the effect you want?

Simplest way would be an Add SOP and just type in the point positions you want.

Can you provide an example scene with what you've tried before?

Link to comment
Share on other sites

I want iterate per curve,primitive and get per curve points,such as one curve has 4 points,

the point index is like this {0 ,1 ,2, 3 }  ,now i want to copy the point index 0  and  3 data(position and attribute) ,

after that i want insert the copied  point 0 beforethe the point index 0 ,now the point index is {0(new copy point),1(The original point 0),2(The original point 1),3(The original point 2),4(The origina point 3l)}

 

It means i want to in pointlist before and after each insert a point,

 

I find  "insertPointCopy ( GA_Offset src,     GA_Index beforeWhich = GA_INVALID_INDEX   )" operation

but when i Insert point index 0 is always at the bottom,

the "GA_Index beforeWhich" parameter should be how to set?

 

Or have a better way?

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...