[Sidefx-houdini-list] HDK: parse point/prim groups

Andrew Lyons tstexture at gmail.com
Mon Nov 28 16:46:08 EST 2011

Hi Szymon,

It is possible to have a point group called "group1" and a prim group
called "group1" in the same geo detail. Note sure that you could avoiding
testing for the existence of both at all times...

Perhaps exposing a "group type" switch/menu parm on the node would help
clarify user intent for the system?

I might be missing something though.


On 28 November 2011 13:27, Szymon Kapeniak <szymon.kapeniak at gmail.com>wrote:

> Hello,
> I'd like to modify an user specified group whenever it is a point or
> primitive group. The thing I'm doing in essence is that I iterate over
> points belonging to a point group, *or* laying on a primitives
> belonging to the prim group. Is there a dedicated way of doing this?
> Currently my sop uses SOP_Node::cookInputPointGroups() and iterates
> with FOR_ALL_OPT_GROUP_POINTS macro and I would love to leave it this
> way for, at least theoretical, optimization.
> Should I basically use things like, parseInputGroup(),
> cookInputAllGroups(), and then manually figure out type of a group,
> and in case of prim group, iterate over prim to add point to some
> array, or... I have better option?
> thanks!
> skk.
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

Andrew D Lyons | Digital Artist | http://www.tstex.com

More information about the Sidefx-houdini-list mailing list