next up previous contents index
Next: VIEW OPTIONS DEFORM Component [Factor] Up: VIEW OPTIONS Mode Control Previous: VIEW OPTIONS BROKEN [OFF]

VIEW OPTIONS COLOUR Attribute [Control]

  The VIEW OPTIONS COLOUR commands allow the use of colour to add information to the drawing of the model.

FEMGEN Command.

                             


Attribute Comments
MATERIAL Colour model based on materials.
PHYSICAL Colour model based on physical properties.
QUALITY Colour model based on any quality tests failed.
TYPES Colour model based on element types.
OFF Assignment of colour by attribute is switched off.

Notes:

1.
Assignment of Colours in FEMGEN
In FEMGEN , for hidden views only, colours can be assigned according to element type, material, physical property or the first quality test to fail. Currently the colours used are red, orange, yellow, green, blue and violet. When colouring on the basis of element quality tests, green is reserved for elements which pass all tests. Otherwise colours are allocated in the above order; for example when colouring according to element types, all elements of the first element type encountered will be coloured red, any elements of the second element type will be coloured orange and so on. Where more than six instances of an attribute exist (for example eight element types) the colours will be cycled. A legend is always output with FEMGEN coloured hidden pictures indicating what each colour represents.

Once colours have been allocated with the VIEW OPTIONS COLOUR command, the resulting picture can be displayed with a VIEW HIDDEN command. The VIEW HIDDEN FILL COLOUR command will create a hidden view with each element colour filled according to the colour assignments. On devices capable of multi-coloured shading, these pictures can also be shaded with the VIEW HIDDEN SHADE command. To cancel the colour assignments, the command VIEW OPTIONS COLOUR OFF should be issued.

Examples:

1.
VIEW OPTIONS COLOUR TYPES

Assign colours to elements according to element type.

2.
VIEW OPTIONS COLOUR QUALITY

Assign colours to elements based on the first mesh quality test to fail.

FEMVIEW Command.                                


Attribute Control Comments
ASSIGN DEFAULT Assign default colours to entities
(See note 1).
Colour [Range] Assign specific colours to entities
(See note 2).
NODES Colour Colour nodes in specified colour
(See note 3).
MODULATE Colour nodes in modulated
colour.
CONNECT `n' or ALL Colour nodes having a
specified (n) connectivity or
colour all nodes and modulate the
colour according to connectivity.
OFF
ELEMENTS Colour [FILL or EDGES] Colour elements in specified
colour (See note 3).
MODULATE [FILL or EDGES] Colour elements in modulated colour.
OFF
GROUPS [EDGES, FILL or OFF] Specify how groups are to be
coloured (See notes 1 and 2).
MATERIALS [EDGES, FILL or OFF] Specify materials are to be
coloured (See notes 1 and 2).
TYPES [EDGES, FILL or OFF] Specify element types are to be
coloured (See notes 1 and 2).

Notes:

1.
Default Colour Ranges in FEMVIEW
The command VIEW OPTIONS COLOUR ASSIGN DEFAULT works so that entities 1, 7, 13, 19 .... are assigned the colour red; entities 2, 8, 14, 20 .... the colour orange; 3, 9, 15, 21 .... the colour yellow etc. The command works with Groups, Materials and Element Types.
2.
Specific Range and Colour Control in FEMVIEW
The colours available are RED, ORANGE, YELLOW, GREEN, BLUE and VIOLET. The command works with Groups, Materials and Element Types. To associate a colour with a range of entities, for example groups 1 to 4 with the colour red, use the command VIEW OPTIONS COLOUR ASSIGN RED 1 TO 4. Groups 5 to 8 may then be associated, for example, with colour blue via the additional command VIEW OPTIONS COLOUR ASSIGN BLUE 5 TO 8. In each case a colour is assigned to a range, and only one assignment is stored for each colour. Thus an additional assignment for colour blue here, would overwrite the previous assignment.

Note that when mesh colouring is turned off with the commands VIEW OPTIONS COLOUR OFF or VIEW OPTIONS COLOUR Attribute OFF the colour assignments are retained and will be re-applied with the next VIEW OPTIONS COLOUR Attribute command unless otherwise reset.

3.
Colouring elements and nodes in FEMVIEW
The colours available are WHITE, RED, ORANGE, YELLOW, GREEN, BLUE and VIOLET.

4.
Advantage in shrinking the mesh
With the VIEW OPTIONS COLOUR Attribute EDGES command, the edges of an element will overwrite, or be overwritten by, the edges of an adjacent element; depending on the order in which they are drawn. By applying a small shrink factor the differences between adjacent elements can be seen (see: VIEW OPTIONS SHRINK.

5.
Problems with colour fill pictures
With VIEW OPTIONS COLOUR Attribute FILL applied to model visualisation modes (see VIEW other than VIEW HIDDEN, the faces of the model will be drawn in the order in which the elements occur in the database, so with some models, the faces at the back of the model may be drawn after faces nearer to the observer which will produce a confusing picture.

Examples:

1.
VIEW OPTIONS COLOUR ASSIGN RED 1 TO 6

The colour red is assigned to entities in the range 1 to 6.

2.
VIEW OPTIONS COLOUR ASSIGN GREEN 10

The colour green is assigned to entity number 10.

3.
VIEW OPTIONS COLOUR MATERIALS FILL

If issued following the two previous commands the effect will be that elements with material numbers 1 to 6 are colour filled red and elements with material number 10 are colour filled green.

4.
VIEW OPTIONS COLOUR ASSIGN GREEN 15 16 17

The colour green is assigned to entities 15, 16 and 17. This will replace the previous assignment for the colour green given in the second example.

5.
VIEW OPTIONS COLOUR GROUPS EDGES

If issued following the previous commands the effect will be that elements in groups 1 to 6 have their edges coloured red and elements in groups 15, 16 and 17 have their edges coloured green (see note 3 above).

6.
VIEW OPTIONS COLOUR NODES RED

A red symbol is displayed at each node point.

7.
VIEW OPTIONS COLOUR ELEMENTS BLUE FILL

All elements are filled with the colour blue.

See also the following commands

'VIEW OPTIONS LIGHT'
'VIEW OPTIONS SHRINK'


next up previous contents index
Next: VIEW OPTIONS DEFORM Component [Factor] Up: VIEW OPTIONS Mode Control Previous: VIEW OPTIONS BROKEN [OFF]

Femsys Limited
1st October 1999