# Knife tool with bmesh API

I need to find the intersection curve between two (open) meshes, and I can do that interactively with the knife tool. In search for a way to do it from a script, I came across the following highly relevant question: Using knife_tool from python api

There is one answer, which simply refers to the BMesh API. However, I find no immediate candidate for the knife_tool from bpy.ops.mesh in bmesh.ops.mesh. Is there a way to script mesh intersection cutting from bmesh, or at all?

The attached screendump illustrates a cut in the cylinder mesh from the intersecting sphere mesh. I obtain it interactively with the cylinder mesh edges selected, then by Ctrl+F and choosing "Intersect (Knife)".

## bumped to the homepage by Community♦23 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

• some images are welcome please – yhoyo Aug 20 '18 at 13:00
• I can probably get by with bpy.ops.mesh.intersect. But if BMesh is the future, I would like to know how to do it with bmesh.ops.mesh. – Morten Lind Aug 20 '18 at 14:20
• Hi, have you found a solution yet? Can I update the question with some research I have done? I'd really like to find an answer to this. – Leander Jun 3 at 8:09
• @Leander, you are more than welcome to add to the question, or present you findings and perspectives! – Morten Lind Jun 4 at 9:11

# Select all vertices in Edit Mode