Jump to content

The xyzdist function does not work well


Recommended Posts

you are copying N from the points so it'll not be what you think

also in this line:

vector near_pos2 = primuv(2, "p", near_prim, near_uv) ;

the "p" should be capital "P"

vector near_pos2 = primuv(2, "P", near_prim, near_uv) ;

 

and alternatively you can use Point Deform SOP which will work straight away, plus it will offer you ability to smooth out the deformation a bit and also it will work in case some points are outside of rest geo

solver_xyz_dist_fix.hipnc

Link to comment
Share on other sites

29 minutes ago, anim said:

you are copying N from the points so it'll not be what you think

also in this line:


vector near_pos2 = primuv(2, "p", near_prim, near_uv) ;

the "p" should be capital "P"


vector near_pos2 = primuv(2, "P", near_prim, near_uv) ;

 

and alternatively you can use Point Deform SOP which will work straight away, plus it will offer you ability to smooth out the deformation a bit and also it will work in case some points are outside of rest geo

solver_xyz_dist_fix.hipnc

 

 

Thank you so much

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