Jump to content
Guedin

Generate a line art with curves

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

Share this post


Link to post
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/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×