0
$\begingroup$

I have a script where I create curves from a 3D Printing file (GCode File). The curve created looks like this:

enter image description here

The curve is 2D. When I give it a bevel of 0.1m this happens:

enter image description here

The problem disappears if I change the curve type to 3D:

enter image description here

Due to slight differences in curve behavior in 2D and 3D I would rather have a 2D Curve. I do understand very well that it might be because two points on the curve might be too close to each other. is there any way I can fix this?

$\endgroup$
4
  • $\begingroup$ "I do understand very well that it might be because two points on the curve might be too close to each other." So you already know the likely cause of the issue, why not solve it? $\endgroup$ Jul 11, 2022 at 10:08
  • $\begingroup$ I understand the cause, but I don't have a solution for it. $\endgroup$ Jul 11, 2022 at 10:16
  • $\begingroup$ The obvious one is eliminating one of the overlapping vertex $\endgroup$ Jul 11, 2022 at 10:17
  • $\begingroup$ Doing that would make my script inaccurate, although I am thinking along those lines too. $\endgroup$ Jul 11, 2022 at 10:21

1 Answer 1

0
$\begingroup$

The solution turned out to be much simpler that I thought. You can achieve the result using geometry nodes.

The top one is the old way, adding bevel to a curve. Bottom one has been done with geometry nodes. Both are 2D curves. enter image description here

This is the geometry node tree: enter image description here

$\endgroup$

You must log in to answer this question.

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