3

My drafting program outputs a .dwf format file. In it, arcs are encoded as

(Circle 602331619,844923003 537072960 32715,65588)

where my so-far affirmed interpretation is (Circle, X-center,Y-center Angle Unknown1,Unknown2).

The image for the arc is shown below (highlighted in Gold):

The arc in concern is the highlighted on.

Hence, each arc has its center and radius given. Are the pair of points at the end the starting and ending angles?

If you take (32715,65588) as (3.2715 rad,6.5588 rad), the output starts making sense. Is this correct?

1 Answers1

3

The file format for *.dwf files is defined. A reference for the various drawing commands can be found here. Specifically, the definition of the Draw Circle/Circular Arc/Circular Wedge function is here.

From that link an arc is described by:

X,Y,R Start,End

where:

X,Y - Center point (in logical coordinates) of the circle to be drawn

R - Radius (in logical coordinates) of the circle to be drawn

Start, End - The angles (in 360/65,536ths of a degree) that describe a "pie-slice" of the full circle to be rendered; legal values range from 0 to 65,536

hazzey
  • 10,730
  • 11
  • 46
  • 96