11
$\begingroup$

If you separate the faces of a mesh with Split Edges and convert them to curves with Mesh to Curve, these curves are twisted in various directions.

Depending on the mesh, in some results the indices and thus the tangents are oriented clockwise, and in some counterclockwise:

enter image description here

The problem becomes even more apparent when the mesh is a three-dimensional structure:

enter image description here

If you then use these curves to instantiate objects, or use Curve to Mesh with a non-closed profile curve, the generated faces point in different directions.


The following questions have been asked before in this context:

However, even though the answer sought here is the solution to both of these questions, each of these questions treats the issue from two different point of view and does not fully discuss the underlying problem:

  • One question deals with aligning the tangents uniformly.
  • The other question is about adjusting the Curve Tilt to match the normal of the faces.

However, the actual question and solution would have to address both issues equally, since these two things are related in this use case.


Therefore again and as summary the question:

How can the curves generated from a mesh be aligned according to the normals of the original faces, so that their tangents run in a uniform direction, and the curve tilt is aligned according to the normals of the faces?

$\endgroup$

1 Answer 1

12
$\begingroup$

So the task is to align the direction of the curves uniformly, and to adjust the Curve Tilt so that it follows a given vector.

This can be solved as follows:

enter image description here

First, the direction of the curve must be corrected, so that it is clear for the curves once at all where "inside" and where "outside" lies.

Then the curve is rotated by adjusting the value for Curve Tilt at the given vector.

PS: I just wanted to quickly share these nodes with you, so this answer is currently still very short and in progress. I will go into it in more detail shortly and explain it with a better example.


(Blender 3.2)

$\endgroup$
1
  • 2
    $\begingroup$ I skimmed the question, looked at the answer, then went back to the question for more detail. Thinkin'.. 'what an incredibly well-constructed question' ... +1 ... 'I wonder who this is?' Ahhhhh .... OK! :D But seriously, very handy. Look forward to your expansion. $\endgroup$
    – Robin Betts
    Commented Aug 11, 2022 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .