"circle" - mkraska/meclib GitHub Wiki

[ "circle", "name", [xc, yc], [xp,yp] , angle, state ]

[ "circle", "name", [xc, yc], radius , angle, state ]

Circle with centerpoint, point on perimeter or radius, angle for dimension. The annotation for the radius is only drawn if name is not empty. If the angle is negative, the dimension is inside the circle, otherwise it is outside.

  • "name" label text for the radial dimension
  • [xc, yc] center point
  • [xp,yp] point on perimeter (alternative to specification of radius)
  • radius radius
  • angle (optional, default: 0 ) angular position of the radial dimension glyph (arrow with label). If negative, the arrow is inside the circle, otherwise it is outside.
  • state (optionl, default: "locked") state, can be set to
    • "show" initally activated, can be deactivated by doubleclick
    • "hide" initally deactivated, can be activated by doubleclick
    • "HIDE" locked in deactivated state
    • "SHOW" locked in activated state

image

[
    [ "grid", "","", -5,6,-5,5, 50 ],
    [ "circle", "", [-2, 2], [-1.5, 1.5] , 45],
    [ "circle", "r", [0, 2], 0.8 , -45, "hide" ],
    [ "circle", "r_0", [2, 2], 0.4 ],
    [ "circle", "", [4, 2], 0.4 ],
    [ "point", "C", [0,2]],
    [ "point", "C", [-2,2]],
    [ "point", "P", [-1.5, 1.5], 15]
]

Objects

  • c.center the center point of the circle