Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

MeshCellShapeFunction

MeshCellShapeFunction
is an option and property for MeshRegion, BoundaryMeshRegion, and related functions that specifies functions to use to generate primitives for rendering mesh cells.

DetailsDetails

  • The following settings can be used:
  • Automaticthe default shape function
    Nonedo not render mesh cells
    funca general shape function
    {cellspec1->func1,}use for mesh cell
  • Mesh cells with no explicit mesh cell shape function are taken to use the automatic shape.
  • The wrapper Property[cellspec,MeshCellShapeFunction->func] can be used when creating mesh regions in functions such as MeshRegion, BoundaryMeshRegion, etc.
  • The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.
  • A general shape function func specifies that the cell of the form should be rendered with the primitive provided by , where coords are coordinates of points with index , and index is the mesh cell index.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Specify a mesh cell function for all zero-dimensional cells:

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

Specify a mesh cell function for all 1D cells:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.2)