locating or identifying the centroid of a primitive

   9086   2   0
User Avatar
Member
29 posts
Joined: 5月 2011
Offline
Guys,
Is it possible to locate the centre or centroid of a primitive? I have a basic rectangular primitive and I need to add a point exactly at the centriod of the primitive, but I don’t know how to do it. Is it feasible to do what I am talking about or is there some other way to go about it different from the way I am conceptualizing.

Regards,
nittin
User Avatar
Member
69 posts
Joined: 7月 2007
Offline
The easiest way to do that is to use tha centroid expression located here

http://www.sidefx.com/docs/houdini11.0/expressions/centroid [sidefx.com]

foir other expressions that will help with later problems look here

http://www.sidefx.com/docs/houdini11.0/expressions [sidefx.com]
User Avatar
Member
29 posts
Joined: 5月 2011
Offline
Dark_Ego,
Thank u so much buddy!! it is working perfectly!!

Regards,
nittin
  • Quick Links