kachurovskiy / lathecode

Text format for lathe parts and other objects with circular symmetry
MIT License
12 stars 4 forks source link

Convex and concave segments merged incorrectly sometimes #19

Open kotovasia5120 opened 2 weeks ago

kotovasia5120 commented 2 weeks ago

I read the manual but I don't understand what the editor wants from me.

TOOL ANG R0.4 L11.6 A32.5 NA55
DEPTH CUT1 FINISH0.2
FEED MOVE200 PASS50 PART10

STOCK D20
L3 R6
L0.5 RS6 RE5.51 CONV
L2.5 RS5.5 RE3 CONC
L1 R3
L2.5 RS3 RE5.49 CONC
L0.5 RS5.5 RE6 CONV
L3.3 RS6 RE0 CONV
L4 R1

image

kotovasia5120 commented 2 weeks ago

Also if you specify instead of L2.5 RS3 RE5.49 CONC, L2.5 RS3 RE5.5 CONC then the model is incorrect

kachurovskiy commented 2 weeks ago

STOCK needs to go before TOOL.

What do you mean by broken? Seems fine. Please post screenshots.

image

kotovasia5120 commented 2 weeks ago

STOCK needs to go before TOOL.

I didn't see this in the manual. Maybe add it or make the order tolerable?

What do you mean by broken? Seems fine. Please post screenshots.

The rounding is lost image image

kachurovskiy commented 2 weeks ago

Yeah, looks like a bug somewhere in the optimization logic.

kotovasia5120 commented 2 weeks ago

Yeah, looks like a bug somewhere in the optimization logic.

By the way, freecad also often has problems with such connections. This problem can be serious.