Add Chromium-only Blender WebEngine parity work
This commit is contained in:
22
blender-5.2.0/scripts/templates_py/bmesh_simple.py
Normal file
22
blender-5.2.0/scripts/templates_py/bmesh_simple.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# This example assumes we have a mesh object selected
|
||||
|
||||
import bpy
|
||||
import bmesh
|
||||
|
||||
# Get the active mesh
|
||||
me = bpy.context.object.data
|
||||
|
||||
|
||||
# Get a BMesh representation
|
||||
bm = bmesh.new() # create an empty BMesh
|
||||
bm.from_mesh(me) # fill it in from a Mesh
|
||||
|
||||
|
||||
# Modify the BMesh, can do anything here...
|
||||
for v in bm.verts:
|
||||
v.co.x += 1.0
|
||||
|
||||
|
||||
# Finish up, write the bmesh back to the mesh
|
||||
bm.to_mesh(me)
|
||||
bm.free() # free and prevent further access
|
||||
Reference in New Issue
Block a user