Skip to content

Instantly share code, notes, and snippets.

@xixixao
Last active November 6, 2022 01:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Testing the signature of all bmesh ops
raw_mesh = bmesh.new()
# setup
bmesh.ops.create_cube(raw_mesh)
raw_mesh.verts.ensure_lookup_table()
# end of setup
bmesh.ops.smooth_vert(raw_mesh)
bmesh.ops.smooth_laplacian_vert(raw_mesh)
bmesh.ops.recalc_face_normals(raw_mesh)
bmesh.ops.planar_faces(raw_mesh)
bmesh.ops.region_extend(raw_mesh)
bmesh.ops.rotate_edges(raw_mesh)
bmesh.ops.reverse_faces(raw_mesh)
bmesh.ops.bisect_edges(raw_mesh)
bmesh.ops.mirror(raw_mesh)
bmesh.ops.find_doubles(raw_mesh)
bmesh.ops.remove_doubles(raw_mesh)
bmesh.ops.collapse(raw_mesh)
bmesh.ops.pointmerge_facedata(raw_mesh, vert_snap=raw_mesh.verts[0])
bmesh.ops.average_vert_facedata(raw_mesh)
bmesh.ops.pointmerge(raw_mesh)
bmesh.ops.collapse_uvs(raw_mesh)
bmesh.ops.weld_verts(raw_mesh)
bmesh.ops.create_vert(raw_mesh)
bmesh.ops.join_triangles(raw_mesh)
bmesh.ops.contextual_create(raw_mesh)
bmesh.ops.bridge_loops(raw_mesh)
bmesh.ops.grid_fill(raw_mesh)
bmesh.ops.holes_fill(raw_mesh)
bmesh.ops.face_attribute_fill(raw_mesh)
bmesh.ops.edgeloop_fill(raw_mesh)
bmesh.ops.edgenet_fill(raw_mesh)
bmesh.ops.edgenet_prepare(raw_mesh)
bmesh.ops.rotate(raw_mesh)
bmesh.ops.translate(raw_mesh)
bmesh.ops.scale(raw_mesh)
bmesh.ops.transform(raw_mesh)
# Not testing these, but their signature is probably wrong too
# bmesh.ops.object_load_bmesh(raw_mesh)
# bmesh.ops.bmesh_to_mesh(raw_mesh)
# bmesh.ops.mesh_to_bmesh(raw_mesh)
bmesh.ops.extrude_discrete_faces(raw_mesh)
bmesh.ops.extrude_edge_only(raw_mesh)
bmesh.ops.extrude_vert_indiv(raw_mesh)
bmesh.ops.connect_verts(raw_mesh)
bmesh.ops.connect_verts_concave(raw_mesh)
bmesh.ops.connect_verts_nonplanar(raw_mesh)
bmesh.ops.connect_vert_pair(raw_mesh)
bmesh.ops.extrude_face_region(raw_mesh)
bmesh.ops.dissolve_verts(raw_mesh)
bmesh.ops.dissolve_edges(raw_mesh)
bmesh.ops.dissolve_faces(raw_mesh)
bmesh.ops.dissolve_limit(raw_mesh)
bmesh.ops.dissolve_degenerate(raw_mesh)
bmesh.ops.triangulate(raw_mesh)
bmesh.ops.unsubdivide(raw_mesh)
bmesh.ops.subdivide_edges(raw_mesh)
bmesh.ops.subdivide_edgering(raw_mesh)
bmesh.ops.bisect_plane(raw_mesh)
bmesh.ops.delete(raw_mesh)
bmesh.ops.duplicate(raw_mesh)
bmesh.ops.split(raw_mesh)
bmesh.ops.spin(raw_mesh)
bmesh.ops.rotate_uvs(raw_mesh)
bmesh.ops.reverse_uvs(raw_mesh)
bmesh.ops.rotate_colors(raw_mesh)
bmesh.ops.reverse_colors(raw_mesh)
bmesh.ops.split_edges(raw_mesh)
bmesh.ops.create_grid(raw_mesh)
bmesh.ops.create_uvsphere(raw_mesh)
bmesh.ops.create_icosphere(raw_mesh)
bmesh.ops.create_monkey(raw_mesh)
bmesh.ops.create_cone(raw_mesh)
bmesh.ops.create_circle(raw_mesh)
bmesh.ops.create_cube(raw_mesh)
bmesh.ops.bevel(raw_mesh)
bmesh.ops.beautify_fill(raw_mesh)
bmesh.ops.triangle_fill(raw_mesh)
bmesh.ops.solidify(raw_mesh)
bmesh.ops.inset_individual(raw_mesh)
bmesh.ops.inset_region(raw_mesh)
bmesh.ops.offset_edgeloops(raw_mesh)
bmesh.ops.wireframe(raw_mesh)
bmesh.ops.poke(raw_mesh)
bmesh.ops.convex_hull(raw_mesh)
bmesh.ops.symmetrize(raw_mesh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment