# 2D drawings of cuts and pockets off 3D parts for cnc machining

**URL:** <https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599>\
**Category:** Grasshopper\
**Tags:** windows, mac, cnc, rhino8\
**Created:** [June 30, 2025, 7:12pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599 "2025-06-30T19:12:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [June 30, 2025, 7:12pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/1 "2025-06-30T19:12:36Z")

</div>

Hello,

A little background:

In my company, we machine a lot of parts using CNC. Our machinist uses DXF files that we send him from the 3D volume. So we have to create these 2D DXF files (which takes a lot of time) that include all the cutting information (drilling, external cutting, internal cutting, pockets…).

Some time ago I created a python script that works most of the time, but we’d like to recreate it in grasshopper so we can use it directly in our other parametric models.

I’m not a grasshopper expert but I spent a few hours trying to create this definition (.gh link below). My aim is, from a part with cut-outs and pockets, to obtain a 2D curve of the underside (which gives me the outer contours + drillings) as well as the 2D curves of my pockets. I don’t need the top face curve (which I tried to do on my gh file). I need the curves to be projected flat on an XY plane.

Finally, I’ll need to offset all the pocket curves that overlap with the bottom face curve (image below). I need this small offset so that the router bit machines the pocket a little further than the outer cutout to get a clean finish. I haven’t come close to a solution on this point.

Any help is welcome!

Thank you,

 ![Base Brep](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/1/c/d1cd5cfe9e9c5d9c3353894fef6c110d56677786.jpeg)  
 ![my goal](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/c/8/2c814379e1728232ad30aa823a54cd11333ada53.png)  
[POCKET.gh](https://discourse.mcneel.com/uploads/short-url/pI5AAkHlALTzHjIWNIwWJtOPstD.gh) (69.8 KB)

Brice.

---

<div class="post-metadata">

**Author:** ![Eef\_Weenink](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eef_weenink/32/764753_2.png) [@Eef\_Weenink](https://discourse.mcneel.com/u/Eef_Weenink)\
**Post date:** [June 30, 2025, 9:32pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/2 "2025-06-30T21:32:10Z")

</div>

![Scherm­afbeelding 2025-06-30 om 23.15.19](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/c/9/8c98873dfa6e19dfaacf69ae4b3c7099ec1cc836.png)

Is this what you need?

 ![Scherm­afbeelding 2025-06-30 om 23.14.59](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/9/2/592bb86f6412394a44cd4f2831cd893b7cfd2344.png)

- Brep Edges gets all the edges out of your brep. (just as it says 🙂 )
- Project these on the XY plane  
Erratum:  
I did write  
_- Join the curves to get rid of the duplicates._  
Is not correct. It is more a cosmetic change. It looks like the duplicates are gone, but as @Joseph_Oster demonstrated, they are still there.

[POCKET\_EW.gh](https://discourse.mcneel.com/uploads/short-url/jJybBBSsvX6bINMQ2WJduTRbp5n.gh) (56.3 KB)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [June 30, 2025, 11:10pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/3 "2025-06-30T23:10:22Z")

</div>

> [@Eef\_Weenink](#):
>
> Join the curves to get rid of the duplicates.

Join does no such thing ❗ Why Project Along instead of Project to a plane?

 ![missing](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/2/7/527d85e35ec1ac5904e484289fda37dcc9bd24d0.png)

This is not a solution, merely an illustration. The spec is poor.

 ![POCKET_JO](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/0/3/4037cc11610e95ee4a2399a326fc07d7daed1e1c.png)  
[POCKET\_JO.gh](https://discourse.mcneel.com/uploads/short-url/rElkLEItcQJRv69X3LiZ3rqAHC2.gh) (40.7 KB)

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [June 30, 2025, 11:46pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/4 "2025-06-30T23:46:40Z")

</div>

This purple group is copied from my previous post, with preview disabled on ColorJa.

It is not intended as a solution but reduces the number of projected edge curves from 108 to 78. The white group uses them to split a surface.

 ![POCKET_2025Jun30a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/3/0/f30b680413da91a0e3964c9111759feca1ac4be0.png)  
[POCKET\_2025Jun30a.gh](https://discourse.mcneel.com/uploads/short-url/8uO7t5Cp1GYC9SnwdelBYjKW8Bb.gh) (47.5 KB)

---

<div class="post-metadata">

**Author:** ![Brad\_Shipton](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brad_shipton/32/719642_2.png) [@Brad\_Shipton](https://discourse.mcneel.com/u/Brad_Shipton)\
**Post date:** [June 30, 2025, 11:53pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/5 "2025-06-30T23:53:58Z")

</div>

I see three cases here. A boundary pocket, thru pocket and an interior pocket. 2D curves don’t seem incredibly helpful. One can easily check the part to determine the pocket outline and depth of cut. Grasshopper can solve all the math you need and collect that data into whatever format your machine might need.

If you are cutting ferros materials it sounds like you might want better CAM software. Many packages have automatic toolpath creation that would work for a simple part like this. Rhino has an addon.

I responded to the wrong post. My mistake.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [June 30, 2025, 11:55pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/6 "2025-06-30T23:55:45Z")

</div>

@brice1 are you using V carve?

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [July 1, 2025, 12:05am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/7 "2025-07-01T00:05:48Z")

</div>

In this version, Cull Pattern _(yellow group)_ eliminates the vertical edges, reducing the projected edges further, from 78 to 42.

 ![POCKET_2025Jun30b](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/d/5/bd579ec53764b52665625058e41c74b48ee09148.png)  
[POCKET\_2025Jun30b.gh](https://discourse.mcneel.com/uploads/short-url/ba18zYGHFQVKXnS2xFFtuRxFfiE.gh) (48.6 KB)

Dot Product might need to be rounded to work the edges that are not vertical?

**P.S.**

 ![POCKET_2025Jun30cc](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/e/0/4e0f32aacac32177dcf987de08471506703ee7bd.png)  
[POCKET\_2025Jun30cc.gh](https://discourse.mcneel.com/uploads/short-url/dFPdJLvxGDcd0tKrCWgfedeXuqv.gh) (39.2 KB)

---

<div class="post-metadata">

**Author:** ![Tom\_Newsom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_newsom/32/618795_2.png) [@Tom\_Newsom](https://discourse.mcneel.com/u/Tom_Newsom)\
**Post date:** [July 1, 2025, 8:28am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/8 "2025-07-01T08:28:17Z")

</div>

This sort of manual (or in this case artisanally automated) translation from model to manufacturing is a rather obsolete way of working isn’t it? I only have a hobbiest’s experience using Fusion 360 and VCarve, but I go straight from model to tool paths, with no intermediate 2D step. You could probably save yourself (and your machinist) a lot of time! Some starting points here: [Free CNC Software](https://carbide3d.com/learn/free-cnc-software/) (reputable source!)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 1, 2025, 8:33am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/9 "2025-07-01T08:33:44Z")

</div>

> [@Tom\_Newsom](#):
>
> in this case

More often than not, there are multiple employees involved in these processes and not one who does or even just could do it all. In some cases the process is split into tasks to keep employees busy and charge more as a consequence.

---

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [July 1, 2025, 8:52am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/10 "2025-07-01T08:52:41Z")

</div>

> [@martinsiegrist](#):
>
> More often than not, there are multiple employees involved in these processes and not one who does or even just could do it all. In some cases the process is split into tasks to keep employees busy and charge more as a consequence.

Yes, we use Vcarve most of the time, sometimes fusion360.

You’re absolutely right about that. My company was small 5 years ago, it has grown very quickly (from about 10 people to over 50 today). A lot of people are still used to “ artisanal ” methods and are not familiar with automation processes on a larger scale.

We have a design office that creates the 3D files and a machining office that handles the encoding part. We separate the two to be able to go faster, but it’s far from efficient. If it were up to me, I’d use RhinoCAM or Fusion360, but I just don’t have the time to do it.

We’re currently changing processes to avoid DXF files, but it’s quite complicated to change the habits of dozens of employees at once.

---

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [July 1, 2025, 8:56am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/11 "2025-07-01T08:56:56Z")

</div>

Thank you very much, i will take a look and try to make it work with my models.  
I’ll get back to you when I have some time to devote to it.

---

<div class="post-metadata">

**Author:** ![Tom\_Newsom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_newsom/32/618795_2.png) [@Tom\_Newsom](https://discourse.mcneel.com/u/Tom_Newsom)\
**Post date:** [July 1, 2025, 9:02am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/12 "2025-07-01T09:02:36Z")

</div>

> [@brice1](#):
>
> My company was small 5 years ago, it has grown very quickly (from about 10 people to over 50 today)

This explains a LOT 😁  
10 people can muddle by but 50 people need _processes_ and nobody has the time or inclination to implement them while the whole company is accelerating. Meanwhile the founding employees (who have the most authority to make changes) are settled in their way of working. You have my sympathies, and good luck with your habit-changing program!

---

<div class="post-metadata">

**Author:** ![inno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/inno/32/544036_2.png) [@inno](https://discourse.mcneel.com/u/inno)\
**Post date:** [July 1, 2025, 9:06am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/13 "2025-07-01T09:06:48Z")

</div>

I tried some stuff, not sure how much robust it is… tried to create a custom Brep to test it, looks like it’s working fine, but to be fair it would be much useful if you could supply many of your plates to test different scenarios

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/b/c/7bcbe73f7c109c4f87a16c6be69ee138890bf8cb.png)

[POCKET\_inno.gh](https://discourse.mcneel.com/uploads/short-url/brIu0aPH3eIQPNmnb4hChuvjOk8.gh) (53.4 KB)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 1, 2025, 9:25am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/14 "2025-07-01T09:25:58Z")

</div>

> [@brice1](#):
>
> Yes, we use Vcarve most of the time,

As long as you’re not milling miter cuts with a 3-axis cnc and ball end bit, this is all fine.

---

<div class="post-metadata">

**Author:** ![kiteboardshaper](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kiteboardshaper/32/767533_2.png) [@kiteboardshaper](https://discourse.mcneel.com/u/kiteboardshaper)\
**Post date:** [July 1, 2025, 9:38am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/15 "2025-07-01T09:38:05Z")

</div>

Hi @brice,

I’m the developer of KaroroCAM, a new cross platform CNC machining/gcode plugin for Rhino - available on the Package Manger:

> **[KaroroCAM CNC / Gcode / CAM plugin for Rhino 8](https://www.food4rhino.com/en/app/karorocam-cnc-gcode-cam-plugin-rhino-8?lang=en)**
>
> A simple to use, cross platform, CNC / Gcode / CAM plugin for programming of 3 axis routers.

I specifically developed KaroroCAM to replace Fusion360 in my own work flow and remove the export/import time suck that using Fusion for CAM added to my day.

I’d be more than happy to give you a trial license and work with you to setup test tool paths to see if this may be a suitable route for you/your business.

Best regards,

David Kay

---

<div class="post-metadata">

**Author:** ![Eef\_Weenink](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eef_weenink/32/764753_2.png) [@Eef\_Weenink](https://discourse.mcneel.com/u/Eef_Weenink)\
**Post date:** [July 1, 2025, 11:51am UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/16 "2025-07-01T11:51:45Z")

</div>

Let me give a second try to improve what I did.

- As you will see, a lot is done with:
- using midpoints of curves!
- get Z values, lengths, distances to “anchor points” you choose  
then test/compare and select what you need.

A bit depending on how close next project of you are, it could be more automated (replace sliders with logic). But I think the approach is rather clear and easy to use as a starters for coming projects.

Regards, Eef

 ![Scherm­afbeelding 2025-07-01 om 13.50.32](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/5/7/357c86d2184af6e7d2cd1c902a4d0b2e51cce6be.png)  
 ![Scherm­afbeelding 2025-07-01 om 13.43.03](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/6/1/9616cddfec6bbdd7e929ba27c7ccd920cdf67688.jpeg)  
[POCKET\_EWII.gh](https://discourse.mcneel.com/uploads/short-url/fcOUPvDUuq1e1yELvue6pAsIF9N.gh) (77.9 KB)

 ![Scherm­afbeelding 2025-07-01 om 13.43.26](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/a/b/8abae1e1378f00a656e6a463de0cf4877e47d54e.jpeg)

---

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [July 1, 2025, 12:11pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/17 "2025-07-01T12:11:38Z")

</div>

Hi,

very interesting thank you!  
I’ve shared the plug-in link with my colleagues, we’ll take a look. I’ll send you a message if we have any questions.

---

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [July 1, 2025, 12:24pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/18 "2025-07-01T12:24:06Z")

</div>

Thank you very much.

I’ve just tested your definition on several of our parts, there are sometimes a couple of errors. I’m going to collect several pieces and share them here.  
On our simplest pieces it seems to work very well though! It’ll save us time already.

I’m wondering: do you think it would be possible to set multiple Breps instead of just one?

---

<div class="post-metadata">

**Author:** ![brice1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brice1/32/759482_2.png) [@brice1](https://discourse.mcneel.com/u/brice1)\
**Post date:** [July 1, 2025, 12:29pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/19 "2025-07-01T12:29:28Z")

</div>

> [@Eef\_Weenink](#):
>
> Let me give a second try to improve what I did.
> 
> - As you will see, a lot is done with:
> - using midpoints of curves!
> - get Z values, lengths, distances to “anchor points” you choose  
> then test/compare and select what you need.
> 
> A bit depending on how close next project of you are, it could be more automated (replace sliders with logic). But I think the approach is rather clear and easy to use as a starters for coming projects.
> 
> Regards, Eef

Thank you, i will take a look !

---

<div class="post-metadata">

**Author:** ![inno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/inno/32/544036_2.png) [@inno](https://discourse.mcneel.com/u/inno)\
**Post date:** [July 1, 2025, 1:19pm UTC](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599/20 "2025-07-01T13:19:09Z")

</div>

> [@brice1](#):
>
> do you think it would be possible to set multiple Breps instead of just one?

yes for sure, but not in the state it currently is because I didn’t really put efforts and I violated all the rules of building a good definition 🙂 that was just a dirty sketch

if you collect many samples for which it fails, it would be much useful data 👍

* * *

[edit] @brice1 this version works (only) on multiple Breps (nothing else changed: it will still fail where the one-brep version was already failing)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/f/e/4fe4e8a57006c37b0981d08a533cbc5ceacfbcce.jpeg)

[POCKET\_inno\_multiple\_Breps.gh](https://discourse.mcneel.com/uploads/short-url/zdfyyHRXCOOupBqOqUEuzb3OHF8.gh) (27.4 KB)

[Next page](https://discourse.mcneel.com/t/2d-drawings-of-cuts-and-pockets-off-3d-parts-for-cnc-machining/206599.md?page=2)
