imat_vtkplot/elementstyle (+FEA)


Purpose

Set element style.

Syntax

hplot.elementstyle(mode,'width',width,'style',style,'edgecolor',edgecolor,'facecolor',facecolor)

Description

This method changes the style of the elements for either the undeformed or deformed FEM.

MODE controls which display the style changes will be applied to -- 'undeformed' or 'deformed'.

WIDTH changes the width of the element borders. This can be any number greater than zero.

STYLE controls the style of the element edges. This can be '-' for solid lines, '--' for dashed lines, '-.' for dash-dot lines, ':' for dotted lines, or 'none' for no lines.

EDGECOLOR sets the edge color for all of the elements. It must be a 1x3 vector with values from 0-255. This specifies the RGB value of the color. Similarly, FACECOLOR specifies the face color of the elements. It must be an Nx3 vector, where N is the total number of elements.