Select N-Gons

   3254   4   1
User Avatar
Member
407 posts
Joined: March 2014
Offline
Does anyone know of a quick and easy way to select N-Gons or polygons with more then 4 points in Houdini ?

I did a little Google search and all I could find is some pointer to Polydoctor. But strangely enough Polydoctor only repairs N-Gons but it doesn't let you create groups for N-Gons that could be selected later on.

Basic stuff one would think …



Thanks,

R
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
PolyDoctor can mark any polys above quads.

Set 5+ Edges to Mark then set all the other options below to None.

This creates a poly attribute called valid_poly where all the invalid polygons are set to 0.

There is a visualizer option. In the Visualize tab turn on Invalid Polys to see the offending n-gons.

You can follow with a Blast SOP and in the group filed use:
@valid_poly==0
and you can see all the invalid polys isolated.

Or use viewport selectors by attribute to do all this in the viewport if you want.
There's at least one school like the old school!
User Avatar
Member
407 posts
Joined: March 2014
Offline
Ah, thanks. That was very helpful.

As a relative newbie I was looking for a more intuitive way to create a group for N-Gons because strangely enough the Polybevel SOP doesn't have a “selected/none-selected” option like the Delete SOP. Something I would expect in all SOPs that use groups, much easier then figuring out one has to use a “!” to invert the selected group.
User Avatar
Member
710 posts
Joined: July 2005
Online
You can also use a Group Expression SOP with the expression @numvtx>4
User Avatar
Member
407 posts
Joined: March 2014
Offline
Thanks Mr. Juice.

  • Quick Links