Recursive subdivision and extrude

   1805   0   0
User Avatar
Member
71 posts
Joined: Sept. 2018
Offline
Hello everyone!

First time posting here. I'm pretty new to Houdini and coding, but I thought I'd ask if anyone is maybe able to help me out with a small problem that I'm facing concerning loops and VEX.


What I'm trying to do is to recursively subdivide and manipulate a surface by nesting a for-loop inside a foreach loop, and manipulate the surface in a way by moving the centroid (or face maybe in the case of a loop subdivision) created in the subdivision along the surface normal. But I'm having a hard time writing the VEX code for moving the point or face. What I need is some way of accessing the vertices or primitives created in the current iteration, right?

Ideally I'd be able to change what type of subdivision I want to have in the Subdivide SOP and achieve different results pretty quickly by maybe changing a few parameters of the code if I want to move a face or a point.

I think I'm on the right track here, but I might as well be totally off.

Best,
Albin

Attachments:
subdivide and move.hipnc (86.6 KB)

  • Quick Links