    

 ## On this page

  

 

 # surface\_mesh

 Last update: 17.07.2025 

<a id="ansys.meshing.prime.lucid.Mesh.surface_mesh"></a>

#### Mesh.surface\_mesh(min\_size=None, max\_size=None, generate\_quads=False, scope=)

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.