ixmilia / dxf

MIT License
221 stars 67 forks source link

Standard coordinates separator #183

Closed rocchellid closed 2 years ago

rocchellid commented 2 years ago

In some languages the separators '.' and ',' have different meanings; better to use the ';' like Microsoft does

brettfo commented 2 years ago

The standard display of cartesian coordinates is in parentheses separated by commas as mentioned here:

The Cartesian coordinates of a point are usually written in parentheses and separated by commas, as in (10, 5) or (3, 5, 7).

Because of this I'm going to keep the comma separators, but I will, however, force the X/Y/Z values to be displayed with a decimal point, as opposed to a decimal comma, to ensure the final display value is not ambiguous.

brettfo commented 2 years ago

I added this test to ensure the display is consistent:

https://github.com/ixmilia/dxf/blob/995b1a13820ddfdcbc4352aee10c22f9a9c67b24/src/IxMilia.Dxf.Test/MiscTests.cs#L220-L239