home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
cad
/
xcad3000
/
xcdoc
/
chgpoly
< prev
next >
Wrap
Text File
|
1995-07-10
|
3KB
|
82 lines
5.7.2 CHANGE POLYGON
The CHANGE POLYGON command is used to alter the shape or to change the fill
font for an existing polygon entity.
COMMAND FORMAT
The command format varies depending on the modification mode chosen. The
different formats are explained with their associated modifiers.
MODIFIERS
FONT The FONT modifier is used to enter a family of modifiers
which may be used to specify an alternative fill for existing
polygon entities.
The command format using this modifier is:
#CHANGE POLYGON FONT modifiers :Ent x1 x2 ... xn
The selected fill style will be applied to all polygons
identified via IDENTS.
.NULL NULL is used to change the polygon fill to a solid colourfill
in the layer dependent colour. This is the default fill type
for polygons.
The rest of the modifiers available to specify alternative
fill type are described under the documentation for the DRAW
POLYGON command.
ADD The ADD modifier is used to indicate that a sub-polygon
definition is to be added to an existing polygon. The command
format when using ADD is:
#CHANGE POLYGON ADD :Ent x1 :Loc x2 x3 ... xn [:Ent ... ]
'x1' is used to select the required polygon. Locations 'x2'
through to 'xn' define the boundary of a sub-polygon which is
added to the polygon entity. This allows you to cut out
sections of an existing polygon. ( See fig. 5.51 ).
SUBTRACT The SUBTRACT modifier is used to indicate that sub-polygon
definitions are to be removed from an existing polygon
entity. The command format when using SUBTRACT is:
#CHANGE POLYGON SUBTRACT :Ent x1 :Loc x2 ... xn [:Ent .. ]
'x1' is used to select the required polygon. Locations 'x2'
through to 'xn' are used identify which sub-polygon
definitions are to be removed. The main polygon boundary
cannot be removed. ( See fig. 5.52 ).
EDIT The EDIT modifier is used to indicate that the main polygon
boundary or any sub-poygon boundary for an existing polygon
entity will be altered. The command format when using EDIT
is:
#CHANGE POLYGON EDIT :Ent x1 :Loc x2 x3 ... xm xn [:Ent ]
'x1' is used to select the required polygon. Locations 'x2'
through to 'xn' define the boundary alteration and are also
used to select whether the main polygon boundary or a sub-
polygon boundary will be changed.
Locations 'x2' and 'xn' mark the start and end of the boundary
alteration. Both the points 'x2' and 'xn' must lie in the
vicinity of the same polygon boundary. The polygon boundary
nearest to these two points will be altered.
The new boundary shape is made by adding the section defined
by the locations 'x2' through to 'xn' at the two points where
the new section joins the existing boundary. These two points
are made at the intersection of the two vectors x2,x3 and
xm,xn with the selected polygon boundary. ( See fig. 5.53 ).