Jump to content

Remove points problem


Haya8810

Recommended Posts

This highligted point has int attribute which is 1 and rest of points are 0.  

The problem is two primitive curves are exsisting. And I don't wanna use for each loop node if it's possible.
Would it be possible to remove lesser point number than the highligted points in each curve? 

Capture.JPG

Edited by Haya8810
Link to comment
Share on other sites

2 hours ago, Haya8810 said:

This highligted point has int attribute which is 1 and rest of points are 0.  

The problem is two primitive curves are exsisting. And I don't wanna use for each loop node if it's possible.
Would it be possible to remove lesser point number than the highligted points in each curve? 

Capture.JPG

//i@attr =1 for selected points
int primpoints[] = primpoints(0,@primnum);
int min =  min(primpoints);
int selPoint[] = findattribval(0,"point", "attr", 1);
foreach (int sel;selPoint) {
    foreach (int pt;primpoints) {
        if (find(primpoints,sel)>=0 && pt<sel && pt>=min) {
            removepoint(0,pt,0);
        }
    }
}

 

Screenshot_1.png

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