7
$\begingroup$

I'm displacing a curve using this geometry node setup:

enter image description here

The concave side of the tight turns end up with this artifact:

enter image description here

Is there better a technique for this kind of displacement?

Note this is a bit oversimplified from what I'm actually doing. I'm going to displace the curves in Z, for droopy electrical power lines.

$\endgroup$
1
  • $\begingroup$ try increasing the resolution, and lowering the length in the resample node. $\endgroup$
    – lwswl
    Commented Mar 24, 2022 at 18:20

1 Answer 1

10
$\begingroup$

Please note: This solution is more of a trick than a really solid and mathematical solution, but in most cases it leads to the goal.

...at least it's an interesting approach and can give you a good direction:

  1. Draw your curve.

    enter image description here

  2. Then offset the curve points by a certain value, left/right or outside/inside.

    ...As expected, you get exactly the result you do NOT want.

    enter image description here

  3. At the same time, if you create a mesh from your original curve using Curve to Mesh, which is not quite as wide as your two outside curves, you will get a mesh in between, which looks a bit like a roadway

    enter image description here

  4. Now you can use Geometry Proximity to check if the outer curve points protrude into the inner area and you can remove them, leaving only the curve you are looking for

    enter image description here

  5. You can then edit these two curves with your desired profile. Keep in mind that this will cause the same problem again on the mesh itself, (but that's another topic, and as far as I know there is no funny trick with geometry nodes to solve it).

    enter image description here

Here is a summary of the node group that leads to the described result (The inputs are marked green here):

Node Group

Of course, with this solution the spacing of the curves is flexible, and in most cases the result should be without error (depending on the curve).

enter image description here

$\endgroup$
2
  • 3
    $\begingroup$ wow....impressive! +1 $\endgroup$
    – Chris
    Commented Mar 24, 2022 at 18:17
  • $\begingroup$ would you provide blend file? $\endgroup$
    – Chris
    Commented Mar 24, 2022 at 18:27

You must log in to answer this question.

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