Push Operator

   9629   6   2
User Avatar
Member
158 posts
Joined: July 2005
Offline
How can I translate every vertex of a polygon along the normal direction about a certain amount.
User Avatar
Member
311 posts
Joined: July 2005
Offline
peak sop
User Avatar
Staff
2591 posts
Joined: July 2005
Offline
sascha
How can I translate every vertex of a polygon along the normal direction about a certain amount.
Or, in VEX (which I think is something like 3 or 4 VOPs…)

sop
push(float amount=0)
{
P += amount * normalize(N);
}
User Avatar
Member
7721 posts
Joined: July 2005
Online
Why use VEX when there's the Peak SOP though?
User Avatar
Member
158 posts
Joined: July 2005
Offline
mark
Or, in VEX (which I think is something like 3 or 4 VOPs…)

Would VEX not be much slower in the viewport as a SOP?
User Avatar
Member
2199 posts
Joined: July 2005
Online
edward
Why use VEX when there's the Peak SOP though?

It's quicker for a coder to write a new sop than find the name of the one that does the job already… :wink:
The trick is finding just the right hammer for every screw
User Avatar
Member
311 posts
Joined: July 2005
Offline
sascha
mark
Or, in VEX (which I think is something like 3 or 4 VOPs…)

Would VEX not be much slower in the viewport as a SOP?

As far as I know, no. VEX SOPs are pretty fast.
  • Quick Links