3d form to laser cutting don't work

I have a bug in my program. I get polyline curve from Brep to plane and it should be closed planar curve. What is wrong :frowning:


wall_to_cnc.gh (10.9 KB)

Hello
you didn’t internalize data
Why not using contour curves ?
And why that ?

what is the best way

I put extrusion to see the thickness of the material and the spacing

In the file you posted it seems that the Brep/Plane connections have been reversed.

@aagc

Ok but why using Brep/Plane as output as you already have the curves from Contour that are closed and planar !!!

Also with geometry with holes they are

A Polyline can be closed and planar !

It’s not entirely wrong.
In the case shown in the image, the hollow cylinder would produce two curves instead of the real section

Thanks for the help. I try 2 curve and did a loft. I’m getting a error on the Brep
plane


wall_to_cnc.gh (16.5 KB)
Test3dform.3dm (3.2 MB)

Hello
if you want real help, it could be better you post the script with some data internalized. And also explain what you want.
From screen capture it seems you connect components without understanding what you do (or want ?).

I am really not sure it is useful to do what you do to make files for laser cutting. I used or send files for 4 types of laser cutter and I only use curve with svg or dxf mostly.

Hello Laurent, I’m just a newbie with grasshopper. My goal is to take a 3d form and slice it so I can work with my laser cutter.

Newbie or not, if you want useful help
tell us what needs your laser cutter (I am quite 100 % percent sure it is curves)
Do you export them to a certain format ?
A file per shape/slice ?
A file with shapes.slice nested (so you can use OpenNest) ?

You can extrude if you want, but contour must be enough for the job, then some orient and perhaps some nesting.

I need the contour curve and i export them as DXF to the laser cutter. The result I want is to rebuild the shape with the slice form the laser cutter.

Thx Leopol appreciated

Thx again Laurent, did I made my self clear about the result I want.

I try a box and everything is fine. I did curve and loft it and getting error. I did a mesh and getting error. What is the difference that make my result not working ???
Test3dform.3dm (3.6 MB)
wall_to_cnc.gh (16.5 KB)

once you have generated the Contour curves (A) you need to orient them on XY in order to be exported to DXF

to do that you can get the source planes on which each of those curve in space lies (B) and generate an equivalent amount of non overlapping destination planes on XY (C)

be aware that CNC/laser/whatever cutting instruments usually want polylines (not nurbs curves):
for that reason it’s convenient to pass the oriented curves into a ToPoly (D) for which you need to set tolerances depending on the final resolution you want to get (and the instrument can produce)

wall_to_cnc_Re.gh (28.1 KB)


this definition works well also on the 3dm test file you just posted:

Wow :slight_smile:

and if you want to nest the results, there are lots opennest discussions. This one is quite complete and a bit complex but real life.

this one for labels, but surely too complex because input data are not very good.

here I put a 3d mesh and get funny result.
Test3dform.3dm (5.8 MB)

it will work better with tree statistic


wall_to_cnc_LD.gh (10.3 KB)