Did you ever wonder how to create polygons and polylines through code in Houdini. It’s a straigtforward concept. But you have to know some things about the way Houdini organizes and stores geometry in memory. In this tutorial Manuel will walk you through the process of creating geometry with VEX in a wrangle. After some theory he’ll show you how to generate a closed polygon. Then you’ll learn how to connect neighbouring points with polylines to create a “plexus” style effect.
The basic sequence of geo creation is the following:
- Create the points with addpoint()
- Create an empty primitive to later store the connectivity information
- Add as many vertices as you like with addvertex() to the primitive
- Update the point references, these vertices are storing
Update from Vimeo by Zybrand Jacobs: