3
$\begingroup$

I need to substract a part of a bezier curve with a boolean object. Since I need to animate the part being removed, this needs to be dynamic.

There is no boolean modifier on curves, and I’ve tested with Geometry Nodes (curve to mesh > mesh boolean) without managing to achieve it.

Does anyone knows how to do that ?

$\endgroup$
3
  • $\begingroup$ Do you also want to animate the curve? $\endgroup$ Feb 22, 2023 at 7:48
  • $\begingroup$ Would you mind telling us how you tried it with Geometry Nodes? Because for me it works quite easy. You know you have to plug a Profile Curve into the Curve to Mesh node to get a mesh that works with Mesh Boolean? $\endgroup$ Feb 22, 2023 at 7:52
  • $\begingroup$ Could you illustrate the desired result... what this Boolean is for? Alternatives might depend on that. (Is the subtraction in the middle, at the ends, out of the side of a bevel... etc.etc.) $\endgroup$
    – Robin Betts
    Feb 22, 2023 at 8:26

1 Answer 1

3
$\begingroup$

A node set up like this allows me to Boolean difference a curve. Be sure that your Bezier curve has no bevel in object data properties. Otherwise, the geometry input would be a mesh and the Curve to Mesh node wouldn't work. Giving the curve depth has to be done in geometry nodes in this case. I used a Curve Circle.

enter image description here

$\endgroup$
6
  • $\begingroup$ If you have a Bevel Depth on the curve it works, too. Then you can simply skip this whole Curve to Mesh part and plug the Group Input > Geometry directly into the Mesh Boolean. $\endgroup$ Feb 22, 2023 at 8:09
  • $\begingroup$ @GordonBrinkmann Yup, just make sure "Fill Caps" is enabled in the curve data, and to add a "Merge By distance" node before the boolean to prevent weird behaviour the default curve caps are not merged to the curve body $\endgroup$
    – Gorgious
    Feb 22, 2023 at 8:13
  • $\begingroup$ @GordonBrinkmann Oh I see, do you know if I should correct this answer or leave as is? $\endgroup$ Feb 22, 2023 at 8:14
  • $\begingroup$ @Gorgious You can do that if you want filled caps... but it is not necessary to make the Mesh Boolean work. $\endgroup$ Feb 22, 2023 at 8:27
  • $\begingroup$ @AdamSwearingen Well, your answer is not incorrect. The node setup works, the other option is just a different way to do it. And the Mesh Boolean in your setup even works if you have a Bevel Depth, then the Curve to Mesh just throws an error, will be ignored and instead the Mesh Boolean uses the mesh from the Bevel Depth. $\endgroup$ Feb 22, 2023 at 8:29

You must log in to answer this question.

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