Jump to content

Group Expression Problem: Works for Some Primitive Only


Recommended Posts

Hi guys,

I have been running into this issue for a few times now and I really need help on this. The group Expression or sometimes even in VEX my group is not selecting all geometry intended, see image below.

See how primitive 159 is not selected even it has N val of {1,0,0}

I also attached a hip file as example.groupexpression.hip

image.thumb.png.d7dce402854674527fb0f5d3d23641a6.pngimage.png.67a7dc2326d977ee3cccfbc012fcd6dd.pngimage.png.ddf91dd774c0f4834b34d9d11227aa83.png

Link to comment
Share on other sites

25 minutes ago, animatrix said:

Hi,

It could be a precision issue, so might have to use some tolerance.

ahh i see...but how did it happen tho? All i did was moving some points by index, there shouldn't be a precision problem

image.png.f061cccef679331243c82bcb18564ac7.pngimage.png.2f96091ae79801315f719f448e2e7e1a.png

Edited by knightist
Link to comment
Share on other sites

On 3/17/2022 at 10:40 AM, animatrix said:

I have to inspect the actual geo you have. Can you post your hip file please?

Hi Yunus, I already attached the hip file it's right above my first image. Sorry should've put it at the bottom so it's more obvious

Link to comment
Share on other sites

On 3/17/2022 at 2:56 PM, eikonoklastes said:

What happens if you try to use a Group node, set to Keep by Normals?

image.thumb.png.a752ac88e332ad1a55d595d07347c8ee.png

it works surprisingly well when I set the direction to 1,0,0 and spread angle to 0. It didn't miss any primitive. But it is just frustrating that my groupexpression is set to @N==set(1,0,0) as well, yet it won't group all my prim

Link to comment
Share on other sites

Using the same code in a primitive wrangle yields the same result as Group Expression SOP is doing the same but when I change the VEX code to this it works:

if ( @N.x > 0.99999 && @N.y == 0 && @N.z == 0 )
    i@group_prims = 1;

You can use this in the Group Expression SOP:

@N.x > 0.99999 && @N.y == 0 && @N.z == 0

 

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