Jump to content

POP inherit point normal from passing a point


Recommended Posts

Hi Odforce.

I have POPs moving past a point and I want the stream to inherit and keep the points normal after passing.
I thought this would be a straight forward pcopen() case, but I cant get it to keep the normal. It's only there for as long as it is within the search radius.

I've tried a few different things in vex. wrapping it in an If statement instead of while, but to no avail.

Edit: I should maybe mention that I'm in SOP right after importing from a DOP.
Tried to make it work in POP wrangle but had no luck there either.

Thanks,
Bastian

vexinheritnormalfail.PNG

vexnormal.PNG

vexCondition.PNG

Edited by bastianlstrube
Link to comment
Share on other sites

Try this in a popwrangle inside the popnet.

 

if(@n2 == 0)
    {
        float radius = chf("radius");
        int maxpts = chi("maxpts");

        int handle = pcopen(1, "P", @P, radius, maxpts);

        v@n2 = pcfilter(handle, "N");

        v@N = @n2;
    }    

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