edit_mesh_operation
Apply common edit-mode mesh operations—smooth vertices, poke faces, split edges, create wireframe, or solidify—to an object or current selection for geometry refinement.
Instructions
Run one of the common edit-mode operations on a mesh.
Args: object_name: Mesh object. operation: One of: SMOOTH_VERTICES (relax lumpy geometry: factor, repeat), POKE (a new vertex in the middle of each face, fanned into triangles: offset pushes it along the normal), EDGE_SPLIT (separate faces along their edges, for hard edges), WIREFRAME (turn every edge into a strut: thickness), SOLIDIFY (give faces thickness, e.g. a plane into a slab: thickness). selection: ALL, or CURRENT for the part chosen with the select_* tools. factor: SMOOTH_VERTICES strength, 0.0 to 1.0. repeat: SMOOTH_VERTICES passes, 1 to 100. offset: POKE distance along the face normal, -100 to 100. thickness: WIREFRAME and SOLIDIFY thickness, 0.0001 to 1000.
Returns: Dict with the operation and the mesh's vertex and face counts after it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| factor | No | ||
| offset | No | ||
| repeat | No | ||
| operation | Yes | ||
| selection | No | ALL | |
| thickness | No | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||