how to create a point at the centroid of a polygon?

   8224   3   2
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
how to create a point and put it a little bit away from the centroid of a polygon along the normal of that polygon?

I assume we can use the hscript of “centroid()” to do this…but can you help to give an example?

or can we use “polyextrude” to do this (e.g. extrude the polygon up a little bit, and set the “scale” of polyextrude as zero and zero)?

Thanks!
User Avatar
Member
192 posts
Joined: Nov. 2008
Offline
facet sop, unique points, post compute normals ->

primitive sop, do transformation scale to zero, vector attributes to transform set to none ->

fuse sop, keep unused points on, update point normals off ->

peak sop, recompute point normals set to no, distance set to the distance away from the face you want the point to be ->

party!

gl dude
User Avatar
Member
1906 posts
Joined: Nov. 2006
Offline
If you do a search here and on odforce you'll find several threads about this topic with several different techniques and custom operators that can do this.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
479 posts
Joined: Dec. 2009
Offline
Thanks, guys!
  • Quick Links