Wolfram: Mesh

By Xah Lee. Date: . Last updated: .

xtodo work in progress

Mesh

Mesh

Mesh -> None

ParametricPlot3D[
{Cos[u]*(2 + Cos[v]), Sin[u]*(2 + Cos[v]), Sin[v]} ,
{u, 0, 5},
{v, 0, 6},
 Mesh -> None
]

MeshShading

MeshShading

MeshShading -> {{None}, {None}} → no surface patch.

MeshFunction

specify how the mesh are generated.

Value is a function or list of functions. Each function may take one or more arguments, depending on where it is used.

For Plot3D, value is a list of 2 function {f1,f2}, each takes 3 args x,y,z

default is

MeshFunctions -> {Function[{x,y,z}, x], Function[{x,y,z}, y]}

wl MeshFunctions 2025-07-01 2a580
wl MeshFunctions 2025-07-01 2a580
Plot3D[Sin[x] Cos[y] (x   y), {x, 0, 3   Pi}, {y, 0, 3  Pi},
 PlotStyle -> Directive[White],
 MeshFunctions -> {Function[{x, y, z}, z]}]

For ParametricPlot3D, value is a list of 1 function or 2 functions.

default is

MeshFunctions -> {Function[{x,y,z,u,v}, u], Function[{x,y,z,u,v}, v]}

or MeshFunctions -> {Function[{x,y,z,u,v}, u]} if a region is given.

for other plot function, see doc.

wl MeshFunctions 2025-07-01 2a2a1
wl MeshFunctions 2025-07-01 2a2a1
ParametricPlot3D[
{Cos[u]*(2 + Cos[v]), Sin[u]*(2 + Cos[v]), Sin[v]},
{u, 0, 5},
{v, 0, 6},
 SphericalRegion -> True,
 PlotStyle -> Directive[White],
 Lighting -> DirectionalLight[White, ImageScaled[{1, 1, 1}]],
 BoundaryStyle -> Directive[Gray, Thick],
 MeshFunctions -> {Function[{x, y, z, u, v}, u^2], Function[{x, y, z, u, v}, v^2]},
 MeshShading -> {{Red, Yellow}, {Blue, Green}}]

BoundaryStyle

BoundaryStyle

BoundaryStyle -> Directive[Black, Thin] → boundary line.

Rendering of a Patch, FaceForm, EdgeForm

Wolfram. Plot and Visualization