mesh-editing-and-bmesh
Installation
SKILL.md
Mesh Editing and bmesh
Trigger
Use this skill when the user:
- Wants to create, modify, or read mesh geometry from Python
- Mentions
bmesh,mesh.vertices,foreach_set,from_pydata,evaluated_get - Has a script that's slow and uses
bpy.ops.mesh.*in a loop - Needs the mesh after modifiers (subdivision surface, mirror, geometry nodes) have been applied
- Asks why their bmesh script crashes on the second run
Three layers, three use cases
There are three ways to touch mesh data and each is right in a specific situation.
Layer 1: bpy.data.meshes and direct vertex/edge/face access
For creating new meshes from scratch or reading static geometry: