Jump to content

Generate a line art with curves


Guedin

Recommended Posts

Hi everyone,
I am looking for a good approach to generating curves that follow the curvature of a mesh. The goal is to generate line art in 3D, so not in post-process. 

First Approach
My first attempt was based on vertex normal to find the lines, but if I push too far the sharp edge detection, I end up with duplicated lines along my curvature which gives an undesirable result. 

632127c832eef_Screenshot2022-09-13210016.thumb.png.4ff567314ba0cb2e5c95e17deb86debb.png

Expected result:

6321284f46ff3_Screenshot2022-09-13210217.thumb.png.7638d5e43ece426a9fe94a20737e39a8.png

Second Approach

My second idea was to scatter points on my mesh and push these points in the direction that the principal curvature method gives me. I keep pushing the points in that direction as long as the next position has a stronger curvature than the previous one. 
The problem is that the principal curvature doesn't give me a constant direction through my mesh, and can flip from one vertex to another. The other problem is that I don't know how to connect the points into a curve.

ezgif.com-gif-maker.gif.bfcf8080382ddbd4bd9fe838cff6c116.gif

Thanks in advance for your help.

  • Like 1
Link to comment
Share on other sites

Have you checked out the new tangent fields SOP in 19.5? It'll help keep a consistent direction for your curves and then maybe you can use curvature to select which lines to keep?

https://www.sidefx.com/docs/houdini/nodes/sop/tangentfield.html

https://entagma.com/new-in-houdini-19-5-pt-1-tangent-fields-and-a-bit-of-vex/

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...