MeshCellShapeFunction
✖
MeshCellShapeFunction
is an option and annotation for MeshRegion, BoundaryMeshRegion, and related functions that specifies functions to use to generate primitives for rendering mesh cells.
Details
- The following settings can be used:
-
Automatic the default shape function None do not render mesh cells func a general shape function {cellspec1->func1,…} use funci for mesh cell cellspeci - Mesh cells with no explicit mesh cell shape function are taken to use the automatic shape.
- The wrapper Annotation[cellspec,MeshCellShapeFunctionfunc] 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 h[{i1,…,in}] should be rendered with the primitive provided by func[coords,index,cell], where coords are coordinates of points with index i1,…,in, and index is the mesh cell index.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (9)Survey of the scope of standard use cases
MeshCellShapeFunction works with regions in 0D:
https://wolfram.com/xid/0cprdrtvsp2fma-j326gx
https://wolfram.com/xid/0cprdrtvsp2fma-57zini
https://wolfram.com/xid/0cprdrtvsp2fma-ymdutn
https://wolfram.com/xid/0cprdrtvsp2fma-xsc5wy
Specify mesh cell functions for all 1D cells and all 0D cells:
https://wolfram.com/xid/0cprdrtvsp2fma-6vtf6s
Individual cells can be drawn using their cell index:
https://wolfram.com/xid/0cprdrtvsp2fma-zrfy1m
https://wolfram.com/xid/0cprdrtvsp2fma-nuwy9m
Draw all cells of a given dimension:
https://wolfram.com/xid/0cprdrtvsp2fma-67atof
Specify a list of cell indices to style:
https://wolfram.com/xid/0cprdrtvsp2fma-z8tw5x
Style cells whose indices match a pattern:
https://wolfram.com/xid/0cprdrtvsp2fma-h3sxs9
Wolfram Research (2015), MeshCellShapeFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html.
Text
Wolfram Research (2015), MeshCellShapeFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html.
Wolfram Research (2015), MeshCellShapeFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html.
CMS
Wolfram Language. 2015. "MeshCellShapeFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html.
Wolfram Language. 2015. "MeshCellShapeFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html.
APA
Wolfram Language. (2015). MeshCellShapeFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html
Wolfram Language. (2015). MeshCellShapeFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html
BibTeX
@misc{reference.wolfram_2024_meshcellshapefunction, author="Wolfram Research", title="{MeshCellShapeFunction}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html}", note=[Accessed: 10-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_meshcellshapefunction, organization={Wolfram Research}, title={MeshCellShapeFunction}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellShapeFunction.html}, note=[Accessed: 10-January-2025
]}