MeshCellStyle

MeshCellStyle
is an option and property of MeshRegion, BoundaryMeshRegion, and related functions that specifies styles to use for mesh cells.

DetailsDetails

  • The following option settings can be used:
  • Automaticuse automatic setting for style
    Nonerender mesh cells with perfect transparency
    styleuse style for all mesh cells
    {cellspec1->style1,}use for mesh cell
  • Mesh cells with no explicit mesh cell style are taken to use the automatic style.
  • The wrapper Style[cellspec,style] is equivalent to Property[cellspec,MeshCellStyle->style] and can be used when creating mesh regions in functions such as MeshRegion, BoundaryMeshRegion, etc.
  • To specify multiple style directives, use Directive[style1,style2,].
  • The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.
  • Style and other specifications are effectively applied in the order MeshCellStyle, Style and other wrappers, and MeshCellShapeFunction, with later specifications overriding earlier ones.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Style all 1D cells red and all 0D cells black:

In[1]:=
Click for copyable input
Out[1]=

Style all 2D cells transparent orange, 1D elements red, and 0D elements black:

In[1]:=
Click for copyable input
Out[1]=

Style all 2D cells transparent orange:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)
| Updated in 2015
(10.2)
Translate this page: