Open lpechacek opened 2 years ago
Export a course map to .ocd
May you provide sample of such .ocd
file for testing?
Here's the sample. The file structure can be analyzed in detail using lpechacek/ocd-dump and/or Kaitai Struct web IDE.
Correct rendering:
Archive with info: vystrizene-kolecko.zip
J
Steps to reproduce
Actual behaviour
Circles that were cut come up as full circles again, without any import warning.
Expected behaviour
Either circles should be cut, or there should be a warning about an unsupported feature.
Discussion
Merely for the record here. This is not a hint that we should implement circle cutting.
Control point circle cutting is an undocumented feature in the .ocd format documentation. However, it turns out that there might be more than one record in the
Poly
array of theTOcadObject
structure. The first coordinate is the point object placement. The second and following records are the circle cut angles as pairs of 32-bit signed integers in the case of cut circles. The pairs encode the cut start angle and end angle in tenths of degrees. The angles are in the range <-180.0; 180.0> degrees with zero on the right and positive angles going counter-clockwise. Mind that these angles are combined with the whole point object rotation (theTOcadObject.Ang
value).These cuts apply to all (hollow) circles in the symbol regardless of their position within the point symbol definition itself.
Configuration
Mapper Version: 0.9.5 Operating System: Linux