Jump to content

compute normal inside attribute vop


kapellan

Recommended Posts

Hello everyone!!

It a posible to compute normal inside Attribute vop? 

In Wrangle, i use code like this:

int prims[] = pointprims(0, @ptnum);
vector sumN = 0;
foreach (int prim; prims) sumN += prim_normal(0, prim, .5, .5);
v@N = normalize(sumN / len(prims) );

But i can't repeet this inside Attribute vop

THANKS IN ADVANCE!

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