grarc


(grarc  ptCenter  radius  startAng  endAng  color  [minsegments  [highlight]])

this function draws a "temporary graphics" arc or circle, with specified radius and color; optionally in highlighted mode.

Arguments

ptCenter  the center point for the arc/circle, as 2d/3d point

radius  the radius used for the arc/circle

startAng  start angle for the arc

endAng  end angle for the arc; note : to draw a circle, specify 0 and 2PI for start and end angle

color  the color to be used for the arc/circle; if specified as -1, the arc/circle is drawn in XOR mode

minsegments  optionally (integer), minimum number of segments to draw (default is 8, maximum is 64)

highlight  optionally, T or NIL; if specified as T, the arc/circle is highlighted, otherwise drawn in normal mode

Return

always returns NIL

Example

(grarc  '(5 5)  1.0  0.0  3.14159  2  16)   draws an yellow arc, with at least 16 segments
(grarc  '(5 5)  1.0  0.0  (* 2 PI)  4  T)   draws a highlighted circle in cyan

Alias


Remarks

as all "temporary graphics", the drawn arc/circle can be cleared by (grclear), or any redraw/regen operation



©  Bricsys NV. All rights reserved.