ImplicitCAD icon indicating copy to clipboard operation
ImplicitCAD copied to clipboard

extopenscad: trigonometric functions aren't compatible with openscad

Open l29ah opened this issue 7 years ago • 5 comments

In openscad they take degrees, while in implicitcad they take radians, but it is never mentioned anywhere.

l29ah avatar May 25 '18 01:05 l29ah

I'm actually good with this, but i think that a compatibility flag makes sense. similar to $RES to set the resolution, $babylonian to use 360 degree notation.

julialongtin avatar May 30 '18 22:05 julialongtin

It is really strange that trigonometric functions take radians but rotation takes degrees.

elimohl avatar Jun 24 '18 19:06 elimohl

I have written a LOT of geometry library code for OpenSCAD that would be broken by this. I like the idea of a compatibility flag, as I never really liked the way the trig functions work in degrees for OpenSCAD

acwest avatar Mar 12 '19 11:03 acwest

I'll be adding a flag for this shortly.

julialongtin avatar Jun 29 '19 08:06 julialongtin

A flag for this has been added and merged. please check if enabling the openscad compatibility flag fixes this for you.

julialongtin avatar Oct 09 '22 10:10 julialongtin