> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# surface_mesh

#### Mesh.surface\_mesh(min\_size=None, max\_size=None, generate\_quads=False, scope=\<ansys.meshing.prime.lucid.scope.SurfaceScope object>)

Generate a surface mesh on a scope.

This method is used to generate a surface mesh of a constant or variable
size. It supports generating quad dominant or triangular elements.

If minimum and maximum sizes are provided, a variable size mesh is generated
between the minimum size and maximum size by applying sizes based on curvature.

If only the minimum size or maximum size is provided, a constant size mesh
is generated with the provided size.

If neither minimum size or maximum size is provided, the global maximum setting
is used to generate a constant size mesh.

**Parameters:**

**min\_size**

Minimum edge length of the mesh. The default is `None`.

**max\_size**

Maximum edge length of the mesh. The default is `None`.

**generate\_quads**

Whether to generate a quad dominant mesh. The default is
`False`, in which case a triangular mesh is generated.

**scope**

Scope for generating the surface mesh.
