Hey, it would be really useful for me to have a polygon Node.

Design: As a vuo.mesh.make.lineStrips Node.

Input: Point List Color/Image

Output: Object/Image

Component: 

Notes from Team Vuo

Vuo Pro: 

No — available with both Vuo and Vuo Pro licenses

Complexity: 

●●○○ — A few weeks of work

Potential: 

●○○ — Appeals to current community

Comments

I've opened this feature

smokris's picture
Submitted by
Feature status:
Waiting for review by Team Vuo
»
Open for community voting

I've opened this feature request for community voting.

I'm thinking this node would be similar to the existing Make Line Mesh nodes, in that it would take a list of points as input, and output a Mesh, which you'd then feed to Make 3D Object to assign a shader and transform. (Then if you want an image, just pass that object to Render Scene to Image.)

Since OpenGL doesn't natively support arbitrary polygons, I'm thinking we'd use the stencil buffer rendering technique described in OpenGL Programming Guide Chapter 14.

Do you mean like Kineme

useful design's picture
Submitted by

Do you mean like Kineme Triangle Family patch Paul (@pbourke)? Both triangles from list and polygon fill from list (2D only) would be good in Vuo. What is the simplest way mathematically to fill a polygon region with triangles using the polygons coordinates?

Using two consecutive corner coordinates and then making a triangle using a third point from another coordinate that is "opposite" them in the polygon coords list is the simplest I can come up with. Haven't tried to program it in VUo yet, will wait for a pressing need for it as I'm still learning the peculiarities of looping in Vuo! Also there's the case of coordinates that lie inside the region formed by all the other coordinates which might mess up my simple method.

There must be a C library out there that can do primitive geometry wrangling like this which Vuo could use to make a Polygon Fill node? Even Cario and Qt (already used in Vuo, perhaps limited to canvas drawing) may have polygon functions, though to generate a Layer datatype in Vuo they may need something else like OpenMesh.

Be interesting to know what library/framework Vuo devs used for the new 3D Boolean Ops node… maybe that can do it.

OpenMesh is underneath something called OpenFlipper, which has scripting for runtime interaction and even a visual editing suite. I wonder if any of it it could be of any use to Vuo?

Feature status

When we (Team Vuo) plan each release, we try to implement as many of the community's top-voted feature requests as we have time for. Vote your favorite features to the top! (How do Vuo feature requests work?)

  • Submitted to vuo.org
  • Reviewed by Team Vuo
  • Open for community voting
  • Chosen to be implemented
  • Released