Jump to content

Keep Polygons Planar in Vellum?


Frd

Recommended Posts

I have this even geometry and want to create a tool, which allows to interactively add variation while these conditions are met:

  • the inner face stays as it is and
  • the surrounding faces remain planar (stretching is allowed).

I found this interesting article about polygon planarization and thought I could try it with Vellum. My goal is to create something like this, just resulting in planar faces:

VellumBrush.gif.714b0192f44648545901a4c34a9ea93b.gif

I added a facet node with unique point and planar option on to check the result. My goal would be, that the outer faces stay connected.

VellumBrush_Facet.gif.00e4ba0d3f3d902e782aa56e68e1c83d.gif

Is there a constraint in Vellum which keeps the faces planar?

VellumPlanar_Problem.hipnc

Link to comment
Share on other sites

  • 2 weeks later...

The limitations are quite strict, maybe Vellum doesn't make sense here. Thinking a bit more I found out that I just need to stay on the y-plane and slide 2 points at once along the adjacent edges to keep the faces planar.

With ramps I create a weight attribute relative to the x and z bounds (cyan). New vectors are calculated by comparing adjacent points, multiplied it with the attribute from the ramps and looped according to the point count. Left: loop with nodes, right: a for loop in vex. The node version seems to be more sensitive with extreme values (non-planar faces are red).

20210307_PlanarModifier.gif.a66ba8d6bceeb926af7feea5b80d4240.gif

Thanks to Matt's cgwiki and some other posts here, this was an interesting lesson in vex!

VEXPlanarTool.hipnc

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...