Action:
|
Creates an arc with the specified center position and radius.
|
|
Filename:
|
cstr/cstr_scm/edge_scm.cxx
|
|
APIs:
|
api_curve_arc
|
|
Syntax:
|
(edge:circular center-position radius
|
|
|
[start-angle=0 [end-angle=360]])
|
|
Arg Types:
|
center-position
|
position
|
|
radius
|
real
|
|
start-angle
|
real
|
|
end-angle
|
real
|
|
Returns:
|
entity
|
|
Description:
|
center-position specifies the center position of the arc.
|
|
|
radius is an implicit line between the center position and the edge of the arc.
|
|
|
start-angle specifies the arc's starting point in degrees.
|
|
|
end-angle specifies the arc's end angle in degrees. The angle's start and end are measured counterclockwise from the
x-axis of the current WCS. The start and end locations must be in the current
xy construction plane.
|
|
Example:
|
; edge:circular
|
|
; Set the view's eye position, target position,
|
|
; and up vector.
|
|
(define viewset (view:set (position 0 0 -100)
|
|
|
(position 0 0 0) (gvector 1 0 0)))
|
|
;; viewset
|
|
; Create circular edge 1.
|
|
(define edge1
|
|
|
(edge:circular
|
|
|
(position 0 0 0) 30 0 90))
|
|
;; edge1
|
|
; Create circular edge 2.
|
|
(define edge2
|
|
|
(edge:circular
|
|
|
(position 25 25 0) 20))
|
|
;; edge2
|
|
; Create circular edge 3.
|
|
(define edge3
|
|
|
(edge:circular
|
|
|
(position -25 -25 0) 10 180 270))
|
|
;; edge3
|
|
; Create circular edge 4.
|
|
(define edge4
|
|
|
(edge:circular
|
|
|
(position -10 -10 0) 15 90 270))
|
|
;; edge4
|
|
(define zoom (zoom-all))
|
|
;; zoom
|
|
; OUTPUT Example
|
|
|
|
Figure 2-9. edge:circular
|