Jump to content

I need to move my geometry perpendicular to existing Normals.


Masoud

Recommended Posts

Hi,

if you made a curve and that your normal is a « natural » normal (not tweaked manually in another wrangle), then when making your curve, output the tangentu attribute. It should be naturally perpendicular to N.

Otherwise, create your own perpendicular vector in a Wrangle using a cross product between your N and an up vector defined arbitrarily (in VEX should be something like v@perpN = cross(@N, up); and define up before like vector up = {0,1,0};)

Then same code as you have with N:

@P += ch(« offsetperp ») * v@perpN;

  • Like 1
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...