Make all 2d curves run in the same direction for cnc use

I mostly use rectanges or circles and when mirroring a rectangle the curves will have the dirrection flipped which means that my cnc will cut on the outside of the line instead of the inside. how do i make them all the same? i have tried match crv direction but i get mixed results. what works is crv boolean but it is slow.
any great ideas will be greatly appreciated.

Welcome to the forum! Could the MatchCrvDir command help you here?

thank for responding, as i mentioned i have tried to use it but it is not reliable, it sometimes works but it is not consistent.if you draw 5 rectangles and you change the directions of all of them then try the matchcrvdir you will see it will not turn all of them to the same direction at least that is what i am seeing.

I tried it on some rectangles and did get them all the same dir…make sure the curves you’re trying to match are all closed or all open.

thank for trying but it is still not working for me, yes they are all closed curves

Can we see an example of the curves that don’t work?

if you put in a circle it does not flip it.

Seems to be working here?? Send an example!


I made top and bottom copys of the same, ran the comand on the bottom samples only to match the direction of the right most square so you can see the results.

Need. To. See. File.

match curve direction.3dm (125.5 KB)

I used to do this with GH for matching the dimentions for the same direction. You can flip a curve according to a sample curve. but it only works when a closed is the sample for a closed and so on.
direction fix.gh (4.5 KB) you can try this grasshopper player command it is not great but that is the basic idea.

Hi @rich3,

Here is a cheap script you can use.

MakeCounterClockwise.py (1023 Bytes)

To run, use the RunPythonScript command.

– Dale

thankyou very much for sharing, works great

1 Like

thank you very much for sharing,your solution just works . Rhino should put you on the payroll

Haha, yeah…

2 Likes