Search - User list
Full Version: Delete non-quads
Root » Houdini Indie and Apprentice » Delete non-quads
xtimmyx
Hi
I'm looking for a way to delete all primitives from an object that is not quads (four edges/points). I guess using the delete node is a suitable way to do it but I've looked through the help and can't find any suitable variable to use in the expression. Or if there is any other way to to it would be fine too.

Probably an easy thing to achieve but my Houdini skills aren't what their supposed to be just yet.
mondi
Group them with a partition sop, using $NVTX (number of vertices in the primitive) as part of your rule, eg..

rule: prim_vertex_count_$NVTX will result in groups:

prim_vertex_count_3 with triangles, prim_vertex_count_4 with quads etc

Then just delete all the non quad groups.
eetu
Or one step faster, use $NVTX!=4 as filter expression in a delete SOP

eetu.
mondi
Nice, I thought the expression had to return the primitive number like the range / pattern modes (I'll admit I didn't read the docs in great detail )

That's definitely going in the workflow.
xtimmyx
Thanks guys! I actually did notice the NVTX-parameter in the help but I must have misread the description. Anyway, this did the trick just perfect. Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB