home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
cad
/
xcad3000
/
xcdoc
/
drawcir
< prev
next >
Wrap
Text File
|
1995-07-10
|
4KB
|
120 lines
5.4.1 DRAW CIRCLE
The DRAW CIRCLE is used to draw one or more full circles using a variety of
construction techniques.
COMMAND FORMAT
#DRAW CIRCLE [modifiers] :Loc x1 ... xn [:Loc x1 ... xn] etc.
If the command is used with no modifiers, 3 locations are entered to define
a circle. A circle will be constructed so that it passes through all 3 of
the locations entered. ( See fig. 5.15 ).
MODIFIERS
LAYER Requires a layer number. This will override the current active
layer.
DEPTH Requires a depth number. This will override the current active
depth.
RADIUS Requires a real value defining the radius of the circle.
Format:
#DRAW CIRCLE RADIUS value :Loc x1 ... xn
or
#DRAW CIRCLE RADIUS :Loc x1 x2 :Loc ...
If the RADIUS modifier is entered with a value, each location
entered will be the centre of a circle. ( See fig. 5.16 ).
If the RADIUS modifier is entered with no value, 2 locations are
entered to define each circle. 'x1' defines the centre of the
circle, 'x2' defines the radius of the circle as the distance
between 'x2' and 'x1'. ( See fig. 5.17 ).
DIAMETER Requires a real value defining the diameter of the circle.
Format:
#DRAW CIRCLE DIAMETER value :Loc x1 ... xn
or
#DRAW CIRCLE DIAMETER :Loc x1 x2 :Loc ...
If the DIAMETER modifier is entered with a value, each location
entered will be the centre of a circle. ( See fig. 5.18 ).
If the DIAMETER modifier is used without a value, 2 locations
are required to define each circle. The centre of the circle is
calculated from the midpoint of a line drawn between 'x1' and
'x2', while the diameter is set as the distance between 'x1' and
'x2'. ( See fig. 5.19 ).
TANGENTIAL Format:
#DRAW CIRCLE RADIUS/DIAMETER value TANGENTIAL :Ent x1 x2 :Ent
or
#DRAW CIRCLE RADIUS/DIAMETER TANGENTIAL :Ent x1 :Loc x2 :Ent
Will draw a circle that is tangential to 2 existing entities or
a circle tangential to one existing entity but with its centre
at a specified location.
The existing entities may be any of cpoint, line, arc, string
or polygon. If the entity is a string or polygon, the segment
nearest the identifying location is used. ( See fig. 5.20 and
5.21 ).
If TANGENTIAL is used with RADIUS or DIAMETER with no value, the
second location entered after one entity is identified will
become the circle centre. The radius of the circle is then
derived from the distance of the centre to the tangent point.
( See fig. 5.22 ).
Some cases involving a circle that is tangential to 2 entities
can have up to 8 possible solutions. The solution returned is
dependent on the locations that were used to identify the
existing entities.
PARALLEL Format:
#DRAW CIRCLE PARALLEL [value] :Ent x1 :Loc x2 :Ent ...
Will draw a circle parallel to an existing circle or arc. 'x1'
identifies the existing entity.
'x2' defines which side of the existing circle to draw the new
circle. If PARALLEL is followed by a value, this defines the
amount to add or subtract from the radius of the existing circle
to create the new circle. If PARALLEL is not followed by a
value, the new circle is constructed parallel to the existing
circle and passing through the point 'x2'. ( See fig. 5.23 ).
HARDFONT Indicates a hardware line-style will be entered.
.STYLE One of the predefined style, a value between 0 and 15.
.THICKNESS Line thickness, a value between 1 and 5.
SOFTFONT Indicates a software line-style will be entered. For a full
description of the SOFTFONT options, see the documentation for
the command DEFINE SOFTFONT.
ATTRIBUTE Used to enter one or more attributes associated with this
entity. For a full description of the ATTRIBUTE option, see
the documentation for the command ADD ATTRIBUTE.