Add Divisions
tb.ops.mesh.add_divisions(*, meshes: Sequence[MeshRef] = ...) -> Result
Divide every face: triangles into four triangles, quads and n-gons into one quad per corner around the center.
Add Divisions to Faces
tb.ops.mesh.add_divisions_to_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
divisions: int = 1,
targets: Targets = None,
) -> Result
Divide the selected faces (triangles into four triangles, other faces into quads around the center); neighbours keep the new midpoints.
Support Loops
tb.ops.mesh.add_support_loops(
*,
meshes: Sequence[MeshRef] = ...,
edges: Literal["hard", "sharp", "selection"] = "hard",
auto_angle: bool = True,
sharp_angle: float = 30.0,
chamfer_width: float = 0.5 % of the model size. (scene units; 0…1000000),
chamfer_segments: int = 2,
chamfer_profile: float = 0.5,
clamp_overlap: bool = True,
support_loops: int = 1,
crease_borders: bool = False,
support_distance: float = 0.5 % of the model size; narrow panels use a smaller gap. (scene units; 0…1000000),
) -> Result
Make a hard-surface mesh subdivision-ready: chamfer every hard line and lay holding loops inside each flat panel, so a Subdivision Surface keeps the edges tight. Curved areas get no loops; narrow panels get a smaller gap. One undo step.
Slide / Rotate Contour
tb.ops.mesh.adjust_contour(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
vertices: Sequence[int] = ...,
slide: float = 0.0,
slide_edges: float = 0.0,
rotate: float = 0.0,
offset: float = 0.0001,
) -> Result
Slide a selected closed edge loop of the Edit Mesh along its axis (it is re-sliced from the reference there, keeping its vertex count and twist) and rotate it around the axis by a fraction of a segment (RetopoFlow Contours). One undo step.
Apply Cutters
tb.ops.mesh.apply_cutters(*, nodes: Sequence[ObjectRef] = ...) -> Result
Bake the live cutters into the selected objects (or the objects a selected cutter cuts): their Boolean modifiers are applied in stack order and the cutters no other object uses are deleted. One undo step.
Add Attribute
tb.ops.mesh.attribute.add(
*,
mesh: MeshRef = ...,
name: str = "Attribute",
domain: Literal["point", "edge", "face", "corner"] = "point",
type: Literal["float", "int", "bool", "float2", "float3", "float_color", "byte_color"] = "float",
) -> Result
Add a named attribute filled with zeros.
Remove Attribute
tb.ops.mesh.attribute.remove(*, mesh: MeshRef = ..., attribute: str) -> Result
Remove a named attribute.
Rename Attribute
tb.ops.mesh.attribute.rename(
*,
mesh: MeshRef = ...,
attribute: str,
name: str,
) -> Result
Rename a named attribute; active and render references follow.
Set Attribute Value
tb.ops.mesh.attribute.set_value(
*,
mesh: MeshRef = ...,
attribute: str,
domain: Literal["point", "edge", "face", "corner"] = "point",
value: float = 1.0,
indices: Sequence[int] = ...,
) -> Result
Set a float attribute on the selected points, edges, faces or corners, creating it when needed (bevel_weight_edge / bevel_weight_vert are the bevel weights). Any finite value is kept.
Beautify Fill
tb.ops.mesh.beautify_fill(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
angle_limit: float = 180.0,
targets: Targets = None,
) -> Result
Flip the shared edges of the picked triangles until none can be improved (fewer long, thin triangles); edges where the triangles fold more than Max Angle stay.
Bend
tb.ops.mesh.bend(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
bend_axis: Literal["x", "y", "z"] = "y",
angle: float = 0.0,
add_as_modifier: bool = False,
) -> Result
Bend the selection around an axis (object space), through the Bend modifier centered on the selection; the bend runs along the selection's longest extent. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Bevel Edges
tb.ops.mesh.bevel_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
add_as_modifier: bool = False,
width: float = ...,
segments: int = 1,
amount_mode: Literal["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"] = "OFFSET",
limit_method: Literal["NONE", "ANGLE", "WEIGHT", "GROUP"] = "NONE",
angle_limit: float = 30.0,
weight_attribute: str = "bevel_weight_edge",
vertex_set: str = "",
invert_vertex_set: bool = False,
profile_shape: float = 0.5,
profile_type: Literal["SUPERELLIPSE", "CUSTOM"] = "SUPERELLIPSE",
custom_profile: Literal["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"] = "LINE",
profile_points: Any = ...,
mesh_method: Literal["ADJ", "CUTOFF"] = "ADJ",
miter_outer: Literal["SHARP", "PATCH", "ARC"] = "SHARP",
miter_inner: Literal["SHARP", "ARC"] = "SHARP",
spread: float = 0.1,
clamp: bool = ...,
harden_normals: bool = False,
face_strength_mode: Literal["NONE", "NEW", "AFFECTED", "ALL"] = "NONE",
material: int = -1,
loop_slide: bool = True,
targets: Targets = None,
) -> Result
Bevel the selected edges: each becomes a strip of faces (rounded with more segments); corners where beveled edges meet are filled.
Bevel Faces
tb.ops.mesh.bevel_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
add_as_modifier: bool = False,
width: float = ...,
segments: int = 1,
amount_mode: Literal["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"] = "OFFSET",
limit_method: Literal["NONE", "ANGLE", "WEIGHT", "GROUP"] = "NONE",
angle_limit: float = 30.0,
weight_attribute: str = "bevel_weight_edge",
vertex_set: str = "",
invert_vertex_set: bool = False,
profile_shape: float = 0.5,
profile_type: Literal["SUPERELLIPSE", "CUSTOM"] = "SUPERELLIPSE",
custom_profile: Literal["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"] = "LINE",
profile_points: Any = ...,
mesh_method: Literal["ADJ", "CUTOFF"] = "ADJ",
miter_outer: Literal["SHARP", "PATCH", "ARC"] = "SHARP",
miter_inner: Literal["SHARP", "ARC"] = "SHARP",
spread: float = 0.1,
clamp: bool = ...,
harden_normals: bool = False,
face_strength_mode: Literal["NONE", "NEW", "AFFECTED", "ALL"] = "NONE",
material: int = -1,
loop_slide: bool = True,
targets: Targets = None,
) -> Result
Bevel the border of the selected face region.
Bevel Vertices
tb.ops.mesh.bevel_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
add_as_modifier: bool = False,
offset: float = ...,
segments: int = 1,
amount_mode: Literal["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"] = "OFFSET",
limit_method: Literal["NONE", "WEIGHT", "GROUP"] = "NONE",
weight_attribute: str = "bevel_weight_vert",
vertex_set: str = "",
invert_vertex_set: bool = False,
profile_shape: float = 0.5,
profile_type: Literal["SUPERELLIPSE", "CUSTOM"] = "SUPERELLIPSE",
custom_profile: Literal["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"] = "LINE",
profile_points: Any = ...,
mesh_method: Literal["ADJ", "CUTOFF"] = "ADJ",
miter_outer: Literal["SHARP", "PATCH", "ARC"] = "SHARP",
miter_inner: Literal["SHARP", "ARC"] = "SHARP",
spread: float = 0.1,
clamp: bool = ...,
harden_normals: bool = False,
face_strength_mode: Literal["NONE", "NEW", "AFFECTED", "ALL"] = "NONE",
material: int = -1,
targets: Targets = None,
) -> Result
Bevel the selected vertices: each corner is cut off (rounded with more segments).
Slice by Plane
tb.ops.mesh.bisect(
*,
meshes: Sequence[MeshRef] = ...,
axis: Literal["x", "y", "z"] = "y",
offset: float = 0.0,
plane_point: Vec3Like = ...,
plane_normal: Vec3Like = ...,
plane_space: Literal["local", "world"] = "local",
clear_inner: bool = False,
clear_outer: bool = False,
flip: bool = False,
fill: bool = True,
selected_only: bool = False,
threshold: float = 0.0,
) -> Result
Cut meshes along a plane (an axis plane at an offset, or any plane through a point), optionally deleting the inner (behind the plane) or outer side and capping the opening. Plane values are in each mesh's own space.
Add Live Target
tb.ops.mesh.blendshape.add_live_target(
*,
mesh: MeshRef = ...,
node: ObjectRef = ...,
source: ObjectRef,
name: str = "",
weight: float = 1.0,
) -> Result
Add another mesh object as a live blendshape target: the target follows that mesh's current shape, including its own modifiers, in its local space. Both meshes need the same ordered vertices, edges and faces.
Add Target
tb.ops.mesh.blendshape.add_target(
*,
mesh: MeshRef = ...,
name: str = "Target",
from_mix: bool = False,
) -> Result
Add a blendshape target: empty (it starts at the Base shape; sculpt it or move its points) or, with From Mix, the current mix of every target at its weight (New Target from Mix). The first target turns the mesh's Blendshape on.
Move Target
tb.ops.mesh.blendshape.move_target(
*,
mesh: MeshRef = ...,
target: str,
direction: Literal["up", "down"] = "up",
) -> Result
Move a blendshape target up or down the list.
Remove All Targets
tb.ops.mesh.blendshape.remove_all_targets(*, mesh: MeshRef = ...) -> Result
Remove every blendshape target; the mesh keeps its Base shape and its Blendshape card goes away. One undo step.
Remove Target
tb.ops.mesh.blendshape.remove_target(*, mesh: MeshRef = ..., target: str) -> Result
Remove a blendshape target. Targets relative to it become relative to the Base.
Rename Target
tb.ops.mesh.blendshape.rename_target(
*,
mesh: MeshRef = ...,
target: str,
name: str,
) -> Result
Rename a blendshape target.
Blendshape Envelope
tb.ops.mesh.blendshape.set_envelope(
*,
mesh: MeshRef = ...,
node: ObjectRef = ...,
envelope: float,
) -> Result
Scale the whole Blendshape mix: 0 shows the Base, 1 every target at its weight. The painted base weights scale it per vertex.
Set Target Offsets
tb.ops.mesh.blendshape.set_offsets(
*,
mesh: MeshRef = ...,
target: str,
indices: Any,
offsets: Any,
) -> Result
Set how far a blendshape target moves some of the mesh's points from the Base (local space, scene units): one offset per listed vertex; the target's other points keep theirs.
Target Relative To
tb.ops.mesh.blendshape.set_relative_to(
*,
mesh: MeshRef = ...,
target: str,
relative_to: str = "",
) -> Result
Set the shape a blendshape target moves from: at weight 1 it moves from that target's shape to its own. Empty means the Base. The stored shape is kept, so changing it back restores the result.
Set Target Weight
tb.ops.mesh.blendshape.set_weight(
*,
mesh: MeshRef = ...,
target: str,
weight: float,
) -> Result
Set a blendshape target's weight: how much of it is mixed in when nothing animates it.
Boolean
tb.ops.mesh.boolean(
*,
base: ObjectRef = ...,
operands: Sequence[ObjectRef] = ...,
operation: Literal["union", "difference", "intersection", "slice", "extract"] = "difference",
keep_operands: bool = False,
add_as_modifier: bool = False,
material_mode: Literal["index", "transfer"] = "index",
) -> Result
Union, Difference or Intersection of a closed Base mesh with closed operand meshes or groups (exact Manifold solver). Operands apply in their listed order; UVs, colors, normals, attributes and materials follow the faces they came from. The operands are removed unless Keep Operands is on; Add as Modifier adds editable Boolean modifiers instead. Open (non-manifold) meshes are refused with the reason. One undo step.
Bridge Edge Loops
tb.ops.mesh.bridge_edges(
*,
mesh: MeshRef = ...,
edge_indices: Sequence[int] = ...,
face_indices: Sequence[int] = ...,
connect: Literal["open", "closed", "pairs"] = "open",
cuts: int = 0,
interpolation: Literal["linear", "path", "surface"] = "path",
smoothness: float = 1.0,
profile_factor: float = 0.0,
profile_shape: Literal["smooth", "sphere", "root", "sharp", "linear", "inverseSquare"] = "smooth",
twist: int = 0,
merge: bool = False,
merge_factor: float = 0.5,
) -> Result
Bridge two or more selected edge loops with strips of faces, or tunnel between selected faces.
Bridge Faces
tb.ops.mesh.bridge_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Remove two selected faces and bridge their borders with a strip of faces (a tunnel).
Cast
tb.ops.mesh.cast(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
factor: float = 1.0,
add_as_modifier: bool = False,
) -> Result
Cast (formerly To Sphere): morph the selection toward a sphere around its center (0 = no change, 1 = perfect sphere), through the Cast modifier. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Center Target
tb.ops.mesh.centre_target(*, mesh: MeshRef, edge: Any = ..., face: int = ...) -> Result
The world center the snaps offer for a mesh shape: with 'edge', the center of the edge loop through it — the fitted circle's center when the loop is round (kind 'circle': a rim, a cap, a hole; an open arc counts), else a closed loop's length-weighted centroid (kind 'loop'); with 'face', the center of the sphere its surrounding patch lies on (kind 'sphere': an eyeball, a ball). Returns kind, center, radius and the circle's normal; refused when the shape has no such center. Feed the center to object.set_origin (origin_to_point) or any move. Read-only.
Clear Sharpening
tb.ops.mesh.clear_sharpening(
*,
meshes: Sequence[MeshRef] = ...,
scope: Literal["auto", "mesh", "selection"] = "auto",
sharp: bool = True,
crease: bool = True,
bevel_weight: bool = True,
seam: bool = False,
) -> Result
Remove sharp marks, creases and bevel weights (and optionally seams) in scope.
Collapse Edges
tb.ops.mesh.collapse_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
position_rule: Literal["midpoint", "first", "last"] = "midpoint",
targets: Targets = None,
) -> Result
Collapse each connected group of selected edges into one vertex.
Collapse Spike Faces
tb.ops.mesh.collapse_spike_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
spike_angle: float = 5.0,
) -> Result
Collapse needle-thin faces (a corner sharper than the spike angle): a needle's tip merges into its nearer neighbour, a sliver folds onto its long edge. The surface stays closed.
Collapse Vertices
tb.ops.mesh.collapse_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
boundary_rule: Literal["skip", "collapse"] = "skip",
targets: Targets = None,
) -> Result
Remove each selected vertex and cap the hole with a triangle fan over its neighbours (a chamfer, not a weld). Vertex-mode Delete runs this.
Add Color Attribute
tb.ops.mesh.color_attribute.add(
*,
mesh: MeshRef = ...,
name: str = "Color",
domain: Literal["point", "corner"] = "point",
type: Literal["float_color", "byte_color"] = "float_color",
color: Color4 = [1.0, 1.0, 1.0, 1.0],
values: Any = ...,
) -> Result
Add a color attribute on points or face corners, filled with a color.
Set Active Color Attribute
tb.ops.mesh.color_attribute.set_active(*, mesh: MeshRef = ..., attribute: str) -> Result
Make a color attribute the one being painted.
Set Default Color Attribute
tb.ops.mesh.color_attribute.set_default(
*,
mesh: MeshRef = ...,
attribute: str,
) -> Result
Make a color attribute the one used for rendering and export.
Decompose into Components
tb.ops.mesh.components(*, mesh: MeshRef = ...) -> Result
List the connected components (shells and loose points) of a mesh with their point and face indices, ordered by lowest point index. Read-only; Separate by Loose Parts makes them objects.
Connect Vertex Pairs
tb.ops.mesh.connect_vertex_pairs(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Split every face between its picked corners with new edges; two picked points that share no face are joined by a cut across the faces between them. Picking order does not matter.
Connect Vertex Path
tb.ops.mesh.connect_vertex_path(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Join the picked points in picking order with edges, cutting across the faces between points that share none.
Convex Hull
tb.ops.mesh.convex_hull(
*,
meshes: Sequence[MeshRef] = ...,
join_triangles: bool = True,
face_angle: float = 40.0,
shape_angle: float = 40.0,
delete_unused: bool = True,
use_existing_faces: bool = True,
make_holes: bool = False,
) -> Result
Object mode: replace each mesh with its convex hull. Component mode: build the hull of the picked points and add it to the same mesh, keeping existing faces on the hull. Flat hull sides join into quads.
Average Normals
tb.ops.mesh.custom_normals.average(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Point every corner of the selected points along their shared average normal, stored as custom normals. Points whose normals cancel out are left alone.
Clear Custom Normals
tb.ops.mesh.custom_normals.clear(*, mesh: MeshRef = ...) -> Result
Remove custom normals; shading follows smooth / sharp again.
Set Corner Normals
tb.ops.mesh.custom_normals.set_corners(
*,
meshes: Sequence[MeshRef] = ...,
corners: Sequence[int] = ...,
normals: Any,
) -> Result
Write literal custom normals on face corners of one mesh. Corners not listed keep their current shading normal. Scripts and tools only.
Set Custom Normals
tb.ops.mesh.custom_normals.set_from_current(*, mesh: MeshRef = ...) -> Result
Store the current shading normals as custom normals, so they no longer follow edits to sharp edges.
Mesh Data
tb.ops.mesh.data.info(*, mesh: MeshRef = ...) -> Result
List a mesh's data layers: weight maps, blendshape targets, UV maps, color attributes, attributes, edge data counts and custom normals. Read-only.
Read Mesh Data
tb.ops.mesh.data.read(
*,
mesh: MeshRef = ...,
attribute: str = ...,
weight_map: str = ...,
edge_data: str = ...,
) -> Result
Dense values of one data layer of a mesh, one entry per element of its domain: an attribute by name (any domain: UV maps, colors, creases and user data), a weight map (every vertex, 0 where it is not a member, plus the members) or edge data (crease, bevelWeight, sharp, seam, vertexCrease, vertexBevelWeight; zeros when the mesh has none). Give exactly one of 'attribute', 'weightMap' or 'edgeData'. Values are flat, 'components' per element. Read-only.
Data Transfer
tb.ops.mesh.data_transfer(
*,
mesh: MeshRef = ...,
targets: Sequence[ObjectRef] = ...,
source: MeshRef = ...,
source_placement: ObjectRef = ...,
uvs: bool = True,
colors: bool = False,
attributes: bool = False,
use_object_transform: bool = True,
add_as_modifier: bool = False,
weight_maps: bool = False,
normals: bool = False,
positions: bool = False,
mapping: Literal["nearestSurface", "topology", "uv"] = "nearestSurface",
max_uv_distance: float = 0.05,
staged: str = ...,
) -> Result
Copy UV maps, colors and named point / face / corner data from another mesh's evaluated surface. Target-only UV maps and active roles stay; changed UV data invalidates imported tangents. Add as Modifier keeps the source live. One undo step across every target.
Debug Dump Mesh
tb.ops.mesh.debug_dump(*, mesh: MeshRef = ...) -> Result
A JSON snapshot of a mesh for debugging: element counts, face-size histogram, bounds, boundary / non-manifold edge counts and every data layer. Read-only.
Decimate
tb.ops.mesh.decimate(
*,
meshes: Sequence[MeshRef] = ...,
add_as_modifier: bool = False,
mode: Literal["collapse", "unsubdivide", "planar"] = "collapse",
ratio: float = 0.5,
iterations: int = 1,
angle_limit: float = 5.0,
use_symmetry: bool = False,
symmetry_axis: Literal["x", "y", "z"] = "x",
triangulate: bool = False,
vertex_set: str = "",
invert_vertex_set: bool = False,
weight_factor: float = 1.0,
all_boundaries: bool = False,
delimit_normal: bool = False,
delimit_material: bool = False,
delimit_seam: bool = False,
delimit_sharp: bool = False,
delimit_uv: bool = False,
) -> Result
Reduce the face count while keeping the shape: Collapse merges edges by least shape error down to Ratio, Un-Subdivide reverses grid subdivision, Planar merges nearly flat neighbouring faces. With Add as Modifier each mesh gets an editable Decimate modifier instead.
Delete Edges
tb.ops.mesh.delete_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
mode: Literal["edges", "edgesAndFaces"] = "edges",
targets: Targets = None,
) -> Result
Delete the selected edges and the faces using them; 'edges' also removes vertices left without edges, 'edgesAndFaces' keeps them.
Delete Faces
tb.ops.mesh.delete_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
mode: Literal["faces", "onlyFaces", "keepBoundary"] = "faces",
targets: Targets = None,
) -> Result
Delete the selected faces, leaving a hole. 'faces' also removes edges and vertices only they used; 'onlyFaces' keeps every edge and vertex; 'keepBoundary' keeps boundary edges.
Delete Loose
tb.ops.mesh.delete_loose(
*,
meshes: Sequence[MeshRef] = ...,
vertices: bool = True,
edges: bool = True,
faces: bool = False,
) -> Result
Remove loose vertices, wire edges and (optionally) isolated faces.
Delete Vertices
tb.ops.mesh.delete_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Delete the selected vertices with every edge and face using them.
Detect Sharp Angle
tb.ops.mesh.detect_sharp_angle(
*,
mesh: MeshRef = ...,
targets: Targets = None,
) -> Result
Find the angle that separates real sharp edges from smooth curvature (the angle a Mechanical remesh keeps crisp), from the mesh's dihedral distribution.
Detect Symmetry
tb.ops.mesh.detect_symmetry(*, mesh: MeshRef = ..., targets: Targets = None) -> Result
Measure how symmetric the mesh is across each local origin plane (X, Y, Z), find its best mirror plane (also off-center or tilted planes), and report the deviations in percent of its size.
Dissolve Degenerate
tb.ops.mesh.dissolve_degenerate(
*,
meshes: Sequence[MeshRef] = ...,
distance: float = 0.0001,
) -> Result
Collapse edges shorter than the distance and fold away flat (zero-area) triangles, keeping the neighbouring faces closed.
Dissolve Dispensable Vertices
tb.ops.mesh.dissolve_dispensable_vertices(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
angle_threshold: float = 5.0133807073947025,
) -> Result
Dissolve points joining exactly two edges that bend less than the angle (boundary and wire points included).
Dissolve Edges
tb.ops.mesh.dissolve_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
use_verts: bool = False,
face_split: bool = False,
angle_threshold: float = 180.0,
preserve_quads: bool = False,
targets: Targets = None,
) -> Result
Dissolve the selected edges, merging the faces on either side into n-gons.
Dissolve Faces
tb.ops.mesh.dissolve_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
use_verts: bool = False,
targets: Targets = None,
) -> Result
Dissolve each connected group of selected faces into one face.
Dissolve Limited
tb.ops.mesh.dissolve_limited(
*,
meshes: Sequence[MeshRef] = ...,
angle_threshold: float = 5.0,
use_boundaries: bool = False,
protect_sharp: bool = False,
protect_seam: bool = False,
protect_uv: bool = False,
protect_materials: bool = False,
protect_normals: bool = True,
) -> Result
Dissolve edges between nearly coplanar faces and vertices between nearly straight edges (by angle). Works on the component selection when there is one, else on the whole mesh.
Dissolve Doublets
tb.ops.mesh.dissolve_low_valence(
*,
meshes: Sequence[MeshRef] = ...,
min_edges: Literal["3", "4"] = "3",
protect_angle: float = 30.0,
) -> Result
Dissolve interior points joining fewer than 3 (doublets) or 4 (also three-edge poles) edges, merging their faces; borders and sharp poles are kept.
Dissolve Vertices
tb.ops.mesh.dissolve_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
face_split: bool = False,
tear_boundary: bool = False,
targets: Targets = None,
) -> Result
Dissolve the selected vertices, merging the faces around each into one n-gon.
Draw Cutter
tb.ops.mesh.draw_cutter(
*,
target: ObjectRef = ...,
points: Any = ...,
normal: Vec3Like = ...,
mode: Literal["cut", "union", "intersect", "slice", "inset", "knife", "auto"] = "cut",
depth: float = 0.1,
live: bool = True,
cutter: ObjectRef = ...,
bevel_width: float = 0.0,
bevel_segments: int = 2,
mirror_x: bool = False,
mirror_y: bool = False,
mirror_z: bool = False,
array_mode: Literal["none", "linear", "radial"] = "none",
array_count: int = 3,
array_axis: Literal["x", "y", "z"] = "x",
array_spacing: float = 0.5,
targets: Targets = None,
) -> Result
Turn an outline drawn on the target's surface (or a picked Cutter object) into a cutter: Cut pockets it into the surface, Union grows it out, Intersect keeps only the part inside it, Slice cuts it out as its own piece, Inset recesses a shallow panel (a negative Depth raises it) and Knife cuts the outline into the surface as edges (the region inside becomes its own face; no Depth, nothing removed). Auto (CAD mode's curve handle) unions for a positive Depth and cuts for a negative one; a cut deeper than the object goes through it. The cutter can repeat mirrored across the target's X / Y / Z and in a linear or radial array, and the rim it leaves can be bevelled. Live keeps the cutter as an editable wire object until Apply Cutters. One undo step.
Draw Surface Face
tb.ops.mesh.draw_face(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
corners: Any,
source_version: str = ...,
mode: Literal["tri", "quad", "mixed"] = "mixed",
offset: float = 0.0001,
backfaces: bool = False,
eye: Vec3Like = ...,
name: str = "Retopology",
) -> Result
Draw one triangle or quad on a source surface. Existing target corners share stable vertex ids. Each accepted face is one undo step.
Draw Surface Contour
tb.ops.mesh.draw_loop(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
start: Vec3Like,
end: Vec3Like,
eye: Vec3Like,
segments: int = 8,
width: float,
rings: int = 1,
connect: bool = True,
source_version: str = ...,
offset: float = 0.0001,
name: str = "Retopology",
) -> Result
Wrap closed quad rings around the reference where the plane through two points and the camera cuts it (Quad Draw Contours). The section nearest the points' midpoint is used; open or missing sections are refused. Near a selected open loop of the Edit Mesh, the new loop is bridged to it instead.
Draw Surface Quad Strip
tb.ops.mesh.draw_strip(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
stroke: Any = ...,
view: Any = ...,
radius: float = 40.0,
lag: float = 0.85,
segments: int = ...,
cyclic: bool = ...,
start_edge: int = ...,
start_face: int = ...,
end_edge: int = ...,
start_vertex: int = ...,
end_vertex: int = ...,
chain_edges: Any = ...,
separate_strips: bool = False,
source_version: str = ...,
request: str = ...,
offset: float = 0.0001,
backfaces: bool = False,
name: str = "Retopology",
) -> Result
Draw a quad strip from one continuous screen stroke. Width and Auto spacing follow the brush radius; pinned segments fix the quad count. Optional disjoint boundary ends share existing vertices. Source gaps, invalid attachments and degenerate quads are refused atomically.
Draw Quad Stroke
tb.ops.mesh.draw_stroke(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
points: Any,
vertices: Sequence[int] = ...,
spans: int = 0,
shape: Literal["strip", "cycle", "ring", "equals", "l", "u", "c", "t", "i", "o", "d", "close"] = ...,
match_counts: bool = False,
offset: float = 0.0001,
) -> Result
Lay an all-quad patch along a stroke on the reference (RetopoFlow Strokes, on one region filler). What the stroke touches decides the shape: Strip (nothing selected), Ring or Loop Extrude (closed stroke), Equals (a run selected, the stroke apart), L (from a run's end), T (from a run's middle), U (between two runs' ends), I (between two runs' middles), C (from a cornered run's free end), O (closing a run with two corners), Close and D (from one end of a run to the other). One undo step.
Place Surface Vertex
tb.ops.mesh.draw_vertex(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
ray: Any,
source_version: str = ...,
offset: float = 0.0001,
backfaces: bool = False,
snap_radius: float = 0.0,
name: str = "Retopology",
) -> Result
Place a free target vertex on the live surface. It can be joined by Shift face creation; one undo step.
Duplicate Selection
tb.ops.mesh.duplicate_selection(
*,
mesh: MeshRef = ...,
mesh_id: MeshRef = ...,
face_indices: Sequence[int] = ...,
vertex_indices: Sequence[int] = ...,
edge_indices: Sequence[int] = ...,
) -> Result
Duplicate selected objects in place, or copy the whole faces covered by picked or explicitly targeted vertices, edges or faces, preserving the component mode.
Clear Edge Data
tb.ops.mesh.edge_data.clear(
*,
mesh: MeshRef = ...,
data: Literal["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"] = "crease",
scope: Literal["selection", "all"] = "all",
) -> Result
Clear crease, bevel weight, sharp or seam on the selection or the whole mesh (Delete All Creases, Clear Sharp/Seam).
Select Edge Data
tb.ops.mesh.edge_data.select(
*,
mesh: MeshRef = ...,
data: Literal["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"] = "crease",
) -> Result
Select every edge (or vertex) carrying crease, bevel weight, sharp or seam.
Set Edge Data
tb.ops.mesh.edge_data.set(
*,
mesh: MeshRef = ...,
data: Literal["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"] = "crease",
value: float = 1.0,
scope: Literal["selection", "all"] = "selection",
) -> Result
Set crease, bevel weight, sharp or seam on the selection (or the whole mesh).
Edge Flow
tb.ops.mesh.edge_flow(
*,
mesh: MeshRef = ...,
mesh_id: MeshRef = ...,
edges: Sequence[int] = ...,
edge_indices: Sequence[int] = ...,
mode: Literal["flow", "linear", "curve"] = "flow",
mix: float = 1.0,
tension: int = 180,
iterations: int = 16,
min_angle: float = 0.0,
blend_mode: Literal["count", "factor"] = "count",
blend_start_count: int = 0,
blend_end_count: int = 0,
blend_start_factor: float = 0.0,
blend_end_factor: float = 0.0,
blend_curve: Literal["linear", "smooth"] = "linear",
curve_tension: int = 100,
end_tangents: Literal["surface", "selection"] = "surface",
space_evenly: bool = False,
use_rail: bool = False,
rail_mode: Literal["factor", "distance"] = "factor",
rail_start_factor: float = 1.0,
rail_end_factor: float = 1.0,
rail_start_distance: float = 0.1,
rail_end_distance: float = 0.1,
targets: Targets = None,
) -> Result
Adjust the selected edge loops to follow the surrounding surface (Set Flow), straighten them (Linear) or curve them between their ends (Curve).
Edge Rotate
tb.ops.mesh.edge_rotate(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
direction: Literal["cw", "ccw"] = "cw",
targets: Targets = None,
) -> Result
Rotate the edge shared by two faces (triangles flip their diagonal; quads and n-gons turn one step).
Edge Split
tb.ops.mesh.edge_split(
*,
meshes: Sequence[MeshRef] = ...,
mesh: MeshRef = ...,
mesh_id: MeshRef = ...,
edge_indices: Sequence[int] = ...,
vertex_indices: Sequence[int] = ...,
angle_threshold_deg: float = 30.0,
use_sharp_edges: bool = False,
add_as_modifier: bool = False,
) -> Result
Separate faces along picked edges, give every face corner and loose edge at picked vertices its own copy, or split whole meshes by angle and sharp marks.
Extend Vertices
tb.ops.mesh.extend_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
factor: float = 0.0,
direction: Vec3Like = ...,
targets: Targets = None,
) -> Result
Split one edge at each selected point and select the new points, ready to move out as new edges. The edge is the only selected edge at the point, else the one along 'direction', else an open-border edge.
Extrude Arc
tb.ops.mesh.extrude_arc(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
angle: float = 90.0,
segments: int = 8,
amount: float = 0.0,
targets: Targets = None,
) -> Result
Bridge exactly two faces with the same number of corners by a curved tube: each face pushes out by Amount, then an arc of the chosen bend joins them; the two faces are removed.
Extrude Edges
tb.ops.mesh.extrude_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
distance: float = ...,
direction_mode: Literal["normal", "x", "y", "z"] = "normal",
targets: Targets = None,
) -> Result
Extrude the selected edges into new quad faces. Omit distance for a quarter of the selected feature size.
Extrude Faces
tb.ops.mesh.extrude_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
distance: float = ...,
direction_mode: Literal["normal", "average", "x", "y", "z"] = "normal",
individual_faces: bool = False,
keep_original: bool = False,
manifold: bool = False,
targets: Targets = None,
) -> Result
Extrude the selected faces as a region (or each face on its own with individualFaces). Omit distance for a quarter of the selected feature size; negative values extrude inward.
Extrude Individual Faces
tb.ops.mesh.extrude_individual_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
distance: float = 0.001,
targets: Targets = None,
) -> Result
Extrude each selected face independently along its own normal; negative values extrude inward.
Extrude and Move
tb.ops.mesh.extrude_move(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
offset: Vec3Like = [0.0, 0.0, 0.0],
) -> Result
Extrude the selected faces (as one region) or edges and move the new geometry by the offset, in Face or Edge mode. Shift+drag the Move gizmo's center to do it in the viewport.
Extrude to Point
tb.ops.mesh.extrude_to_point(
*,
point: Vec3Like,
mode: Literal["vertex", "edge", "face"] = ...,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
view_direction: Vec3Like = ...,
rotate_source: bool = False,
) -> Result
Extrude the selected vertices, edges or faces so the selection's center lands on a world point. With viewDirection the extruded part turns to face the point; Rotate Source turns the source half way too. The new tip stays selected so repeated calls chain. Nothing selected in Vertex mode adds a lone point there. One undo step.
Extrude Vertices
tb.ops.mesh.extrude_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
distance: float = ...,
targets: Targets = None,
) -> Result
Extrude the selected vertices into new edges, moving the new points along each point normal (0 keeps them in place).
Fill Faces
tb.ops.mesh.fill_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Fill holes whose whole border belongs to the selected faces.
Fill Hole
tb.ops.mesh.fill_hole_advanced(
*,
meshes: Sequence[MeshRef] = ...,
hole: int = 1,
method: Literal["smooth", "grid", "fan"] = "smooth",
refine: bool = True,
max_edge_length: float = 0.0,
smooth: bool = False,
smooth_iterations: int = 3,
) -> Result
Fill a hole of a mesh (or every hole) with a smooth refined triangle patch, a quad grid or a fan. Holes are numbered from 1 in the order the result's 'holes' lists them; the Fill Hole popup picks one by hovering and clicking its border.
Fill Hole (Basic)
tb.ops.mesh.fill_hole_basic(
*,
meshes: Sequence[MeshRef] = ...,
max_sides: int = 0,
) -> Result
Fill holes with single n-gon faces.
Fill Hole (Build Patch)
tb.ops.mesh.fill_hole_patch(
*,
mesh: MeshRef = ...,
points: Any = ...,
faces: Any = [],
) -> Result
Add interior points and faces (three or four corners each) to close a hole by hand. A corner is an existing point index, or -1 - k for new point k. Faces are sorted around their center, must be convex and are wound to match the surface.
Fill Quad Patch
tb.ops.mesh.fill_patch(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
vertex: int = ...,
vertices: Sequence[int] = ...,
rows: int = 0,
offset: float = 0.0001,
) -> Result
Fill a closed hole in the Edit Mesh with clean quads on the reference (RetopoFlow Patches). The boundary splits at its turns sharper than 45°: 2, 3, 5 or 6 sides fill around a center, four sides (or a Rows count) as an a, b, a, b grid, and C or I holes (more than six turns) split along chords from their inward corners into such pieces. Needs an even number of boundary edges.
Fit Circle
tb.ops.mesh.fit_circle(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
plane: Literal["auto", "xy", "xz", "yz"] = "auto",
radius: float = 0.0,
center: Vec3Like = ...,
even_spacing: bool = False,
space: Literal["world", "object"] = "world",
targets: Targets = None,
) -> Result
Move the points of one closed edge loop onto the best-fitting circle of their plane, keeping each point's angle or spacing them evenly.
Flatten
tb.ops.mesh.flatten(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
factor: float = 1.0,
plane: Literal["auto", "x", "y", "z"] = "auto",
add_as_modifier: bool = False,
) -> Result
Flatten the vertices onto their averaged plane (the fully selected faces' normal, else the best-fit plane) or a world-axis plane, through the Flatten modifier whose handle is that plane. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Flatten Faces
tb.ops.mesh.flatten_faces(
*,
mesh: MeshRef = ...,
faces: Sequence[int] = ...,
plane: Literal["auto", "x", "y", "z"] = "auto",
targets: Targets = None,
) -> Result
Flatten the selected faces' vertices fully onto their averaged plane or a world-axis plane.
Flatten to Plane
tb.ops.mesh.flatten_to_plane(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
axis: Literal["x", "y", "z"] = "y",
value: float = ...,
factor: float = 1.0,
plane_origin: Vec3Like = ...,
plane_normal: Vec3Like = ...,
) -> Result
Move the vertices onto an axis-aligned plane (object space) at a value — by default the selection's center along that axis — or onto an arbitrary plane given by an origin and normal.
Grid Fill
tb.ops.mesh.grid_fill(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
span: int = 0,
offset: int = 0,
strategy: Literal["grid", "simple"] = "grid",
interpolation: Literal["coons", "simple", "blend"] = "coons",
targets: Targets = None,
) -> Result
Fill a closed boundary loop: 'grid' (default) builds a structured quad grid, 'simple' a triangle fan.
Hide / Reveal Components
tb.ops.mesh.hide(
*,
action: Literal["selected", "unselected", "reveal"] = "selected",
select: bool = True,
) -> Result
Hide the selected or unselected vertices, edges or faces of the edited meshes (their mode's kind), or reveal everything hidden. Hidden components are not drawn, picked or selected in component modes and component operations skip them; Object mode still shows them. Reveal selects the revealed components.
Insert Edge Loop
tb.ops.mesh.insert_edge_loop(
*,
smoothness: float = 0.0,
falloff: Literal["inverseSquare", "smooth", "sphere", "root", "sharp", "linear"] = "inverseSquare",
through_ngons: bool = False,
mesh: MeshRef = ...,
edge_index: int = ...,
edge_indices: Sequence[int] = ...,
face_indices: Sequence[int] = ...,
cuts: int = 1,
position: float = 0.5,
) -> Result
Insert edge loops across the rings through the selected edges, or along the selected face loops.
Inset Faces
tb.ops.mesh.inset_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
thickness: float = ...,
depth: float = 0.0,
individual: bool = ...,
amount: float = ...,
offset_even: bool = True,
offset_relative: bool = False,
edge_rail: bool = False,
boundary: bool = True,
outset: bool = False,
interpolate: bool = True,
select_outer: bool = False,
targets: Targets = None,
) -> Result
Inset the border of the selected faces as one region (or every face on its own with individual). Omit thickness for a width that adapts to the selected faces.
Inspect Mesh
tb.ops.mesh.inspect(
*,
meshes: Sequence[MeshRef] = ...,
checks: Any = ...,
include_indices: bool = True,
merge_distance: float = 0.0001,
degenerate_distance: float = 0.0001,
area_tolerance: float = 5e-13,
dispensable_angle: float = 5.0,
spike_angle: float = 5.0,
non_planar_angle: float = 5.0,
t_vertex_distance: float = 0.0001,
) -> Result
Inspect meshes for problems (non-manifold edges, degenerate geometry, self-intersections, lamina faces, bowtie vertices, T-vertices, duplicate points, spikes, non-planar faces, redundant points, loose geometry) and report counts with dense element indices. Read-only.
Ray-Triangle Intersection
tb.ops.mesh.intersect_ray_triangle(
*,
ray_origin: Vec3Like,
ray_dir: Vec3Like,
v0: Vec3Like,
v1: Vec3Like,
v2: Vec3Like,
) -> Result
Does a ray hit one triangle? Returns the distance t along the ray and barycentric u (towards v1), v (towards v2), or null on a miss. Hits behind the origin miss.
Point Inside Mesh Test
tb.ops.mesh.is_point_inside(*, mesh: MeshRef = ..., point: Vec3Like) -> Result
Is a point (mesh space) inside a closed mesh? Three skewed rays count surface crossings and the majority decides. Open meshes give no meaningful answer.
Knife
tb.ops.mesh.knife(
*,
mesh: MeshRef = ...,
cuts: Any,
view_origin: Vec3Like = ...,
view_direction: Vec3Like = ...,
cut_through: bool = False,
) -> Result
Cut faces along polylines on a mesh (the Knife tool's committed cut). Each segment cuts along the plane through its two points and the viewer, across every face it passes over; points inside a face bend the cut there, and a cut that ends on its first point is closed. Points and view are in world space. Without a view each segment looks along the surface normals at its ends.
Knife Project
tb.ops.mesh.knife_project(
*,
mesh: MeshRef = ...,
cutters: Sequence[ObjectRef] = ...,
projection: Literal["view", "x", "y", "z"] = "view",
view_direction: Vec3Like = ...,
reverse: bool = False,
cut_through: bool = False,
select_inside: bool = True,
) -> Result
Cut the outline of cutter curves and meshes into a mesh, projected along the view or a world axis (cookie cutter, imprint). Curves cut their splines; meshes their open border and loose edges, or their silhouette when closed.
Loop Cut
tb.ops.mesh.loop_cut_edge(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
smoothness: float = 0.0,
falloff: Literal["inverseSquare", "smooth", "sphere", "root", "sharp", "linear"] = "inverseSquare",
through_ngons: bool = False,
count: int = 1,
cuts: int = ...,
position: float = 0.5,
slide: float = 0.0,
even: bool = False,
flip: bool = False,
targets: Targets = None,
) -> Result
Insert edge loops perpendicular to the selected edges (Loop Cut and Slide).
Make Cutter
tb.ops.mesh.make_cutter(
*,
base: ObjectRef = ...,
cutters: Sequence[ObjectRef] = ...,
operation: Literal["union", "difference", "intersection", "slice", "extract"] = "difference",
material_mode: Literal["index", "transfer"] = "index",
) -> Result
Turn the other selected objects into live cutters on the first selected object: each gets a Boolean modifier on it and is drawn as wire, still movable and editable. Apply Cutters bakes them; Show / Hide Cutters toggles them. One undo step.
Make Edge/Face
tb.ops.mesh.make_edge_face(
*,
mesh: MeshRef = ...,
vertex_indices: Sequence[int] = ...,
edge_indices: Sequence[int] = ...,
) -> Result
Join two picked points with an edge, or make one face from three or more points or an edge outline.
Make Planar Faces
tb.ops.mesh.make_planar(
*,
mesh: MeshRef = ...,
faces: Sequence[int] = ...,
factor: float = 1.0,
iterations: int = 1,
targets: Targets = None,
) -> Result
Flatten each selected face onto its own plane; neighbouring faces share the moves.
Merge by Distance
tb.ops.mesh.merge_by_distance(
*,
meshes: Sequence[MeshRef] = ...,
distance: float = 0.01,
connected_only: bool = False,
sharp_edges: bool = False,
whole_mesh: bool = False,
vertex_indices: Sequence[int] = ...,
) -> Result
Merge vertices closer than the distance. Limited to the component selection when there is one.
Merge Edges
tb.ops.mesh.merge_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
targets: Targets = None,
) -> Result
Weld the selected edges together in pairs: each pair's end points merge at their midpoints, matched so neither edge flips; the rest of the topology stays. Both edges must be on one object (Combine first). Collapse Edges collapses an edge to a point.
Merge Vertices
tb.ops.mesh.merge_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
at: Literal["center", "first", "last", "collapse", "position"] = "center",
position: Vec3Like = ...,
targets: Targets = None,
) -> Result
Merge the selected vertices: 'center' at their average, 'first'/'last' onto the first/last selected vertex, 'collapse' each connected group at its own center, 'position' at the given point.
Mirror Mesh
tb.ops.mesh.mirror(
*,
meshes: Sequence[MeshRef] = ...,
style: Literal["topology", "positions"] = "topology",
axis: Literal["x", "y", "z"] = "x",
mode: Literal["mirror", "symmetrize"] = "mirror",
direction: Literal["positive", "negative"] = "positive",
threshold: float = ...,
mid_edge: int = ...,
add_as_modifier: bool = False,
) -> Result
Make meshes symmetrical across an axis. Topology bisects, deletes one half, mirrors the other and welds the seam (rebuilds geometry); Positions moves points only, pairing them by topology from a center edge (Mirror copies one side onto the other, Symmetrize averages both).
Mirror
tb.ops.mesh.mirror_components(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
axis: Literal["x", "y", "z"] = "x",
pivot: Literal["boundingBox", "object", "world"] = "boundingBox",
direction: Literal["positive", "negative"] = "positive",
merge: bool = True,
threshold: float = 0.001,
targets: Targets = None,
) -> Result
Copy the selected faces to the other side of an axis, facing the right way, and merge the points on the mirror plane so the halves join. The copy is selected. One undo step.
Noise
tb.ops.mesh.noise(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
amount: float = ...,
uniform: float = 0.0,
normal: float = 0.0,
seed: int = 0,
add_as_modifier: bool = False,
) -> Result
Noise (formerly Randomize): displace the vertices by a random offset (repeatable with the same seed), through the Noise modifier's Random pattern. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Normal Push
tb.ops.mesh.normal_push(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
distance: float = 0.0,
even_thickness: bool = False,
add_as_modifier: bool = False,
) -> Result
Normal Push (formerly Shrink/Fatten): move the vertices along their polygon normals, positive inflates, negative deflates, through the Normal Push modifier. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Offset Edge Loops
tb.ops.mesh.offset_edge_loops(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
distance: float = 0.08,
even: bool = True,
factor: float = 0.5,
cap_endpoint: bool = False,
single_side: bool = False,
flip: bool = False,
targets: Targets = None,
) -> Result
Add an edge loop on each side of the selected edges, cutting the faces next to them. The new edges are selected.
Poke Faces
tb.ops.mesh.poke_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
center_mode: Literal["median", "medianWeighted", "bounds"] = "median",
offset: float = 0.0,
relative_offset: bool = False,
targets: Targets = None,
) -> Result
Fan each face from a new center vertex.
PolyPen Insert
tb.ops.mesh.poly_pen(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
ray: Any,
mode: Literal["triQuad", "quadOnly", "triOnly", "edgeOnly"] = "triQuad",
vertices: Sequence[int] = ...,
merge_radius: float = 0.0,
insert_radius: float = 0.0,
offset: float = 0.0001,
backfaces: bool = False,
source_version: str = ...,
name: str = "Retopology",
) -> Result
Grow the Edit Mesh by one element from the selection (RetopoFlow PolyPen): a vertex, an edge from a selected vertex, a triangle on a selected edge, a selected triangle into a quad (its leading edge is then selected), a quad bridging the selected edge to a free boundary edge under the cursor, or a split of a selected edge under the cursor. One undo step.
3D Print Splitter
tb.ops.mesh.print_split(
*,
nodes: Sequence[ObjectRef] = ...,
staged: str = ...,
mesh: MeshRef = ...,
cut_mode: Literal["axis", "grid", "plane", "freehand", "surfaceLoop", "edgeLoop"] = "axis",
axis: Literal["x", "y", "z"] = "y",
cut_count: int = 1,
cut_position: float = 0.5,
plane_origin: Vec3Like = [0.0, 0.0, 0.0],
plane_normal: Vec3Like = [0.0, 1.0, 0.0],
planes: Any = ...,
stroke: Any = ...,
stroke_direction: Vec3Like = [0.0, 0.0, -1.0],
loop_points: Any = ...,
loop_edges: Any = ...,
bed_width: float = 0.22,
bed_depth: float = 0.22,
bed_height: float = 0.25,
bed_margin: float = 0.005,
allow_rotation: bool = True,
check_bed: bool = True,
connector: Literal["peg", "dowel", "key", "dovetail", "magnet", "none"] = "peg",
connector_profile: Literal["round", "square", "hex"] = "round",
flip: bool = False,
connector_rotation: float = 0.0,
connector_points: Any = ...,
connector_flips: Any = ...,
taper: float = -8.0,
magnet_diameter: float = 0.006,
magnet_thickness: float = 0.002,
magnet_fit: float = 0.0001,
dovetail_angle: float = 15.0,
connector_size: float = 0.01,
connector_length: float = 0.01,
clearance: float = 0.0005,
connector_count: int = 1,
connector_spread: float = 0.35,
min_wall: float = 0.0012,
segments: int = 32,
labels: bool = False,
label_prefix: str = "",
label_size: float = 0.006,
label_depth: float = 0.0006,
explode: float = 0.0,
keep_original: bool = False,
) -> Result
Cut a closed mesh into parts that fit your printer: along an axis, a build-volume grid, a plane, a line drawn across the model or a loop around it. Each cut gets pegs (a socket with clearance on the other side) or dowel holes with a separate pin, and every part is checked against the bed. Apply or Bake live modifiers first so the cut matches the displayed source.
Export Print Parts
tb.ops.mesh.print_split_export(
*,
nodes: Sequence[ObjectRef] = ...,
format: Literal["stl", "3mf"] = "stl",
file_units: Literal["mm", "cm", "m", "in"] = "mm",
up_axis: Literal["z", "y"] = "z",
binary: bool = True,
file_name: str = ...,
) -> Result
Save the selected parts for printing: each part as its own STL (in print units, Z-up, resting on the bed; several parts are zipped), or all parts in one 3MF. Returns the file name and its bytes (base64); nothing in the scene changes.
Project Vertices to Surface
tb.ops.mesh.project_to_surface(
*,
source: ObjectRef = ...,
target: ObjectRef = ...,
vertices: Sequence[int] = ...,
source_version: str = ...,
request: str = ...,
eye: Vec3Like = ...,
offset: float = 0.0001,
backfaces: bool = False,
) -> Result
Project selected vertices or explicit stable vertex IDs of one unshared edit placement onto an immutable evaluated source. Invalid input changes nothing; one ordinary geometry undo step.
Push Faces
tb.ops.mesh.push_faces(
*,
mesh: MeshRef = ...,
faces: Sequence[int] = ...,
distance: float = 0.0,
targets: Targets = None,
) -> Result
Move the selected faces along their normals (world distance); the side faces stretch. Each vertex moves along the averaged normal of its selected faces, scaled so every face moves the full distance. Topology is unchanged.
Push/Pull
tb.ops.mesh.push_pull(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
distance: float = 0.0,
add_as_modifier: bool = False,
) -> Result
Move the vertices away from (positive) or toward (negative) the selection center, through the Push/Pull modifier whose handle stands at that center. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Recalculate Normals
tb.ops.mesh.recalculate_normals(
*,
meshes: Sequence[MeshRef] = ...,
inside: bool = False,
) -> Result
Make the face winding consistent and point every normal outward, or inward. With a component selection only the faces it covers are recalculated. Face corners (UVs, colors, custom normals) stay with their points.
Remesh
tb.ops.mesh.remesh(
*,
mesh: MeshRef = ...,
preset: Literal["custom", "character", "prop", "hardSurface", "scanCleanup"] = "custom",
style: Literal["organic", "mechanical"] = "organic",
engine: Literal["instantMeshes", "autoRemesher", "quadWild", "voxel", "panels", "auto"] = "instantMeshes",
panel_flatness: float = 2.0,
panel_fill: Literal["quads", "ngons"] = "quads",
panel_feature_angle: float = -1.0,
min_line_length: float = 0.0,
line_gap_reach: float = 0.0,
straighten_lines: float = 0.0,
voxel_size: float = 0.05,
target_mode: Literal["faces", "vertices", "edgeLength"] = "faces",
target_face_count: int = 4000,
target_vertex_count: int = 500,
target_edge_length: float = 0.05,
topology: Literal["quads", "mixed", "triangles"] = "quads",
crease_angle: Any = "auto",
adaptivity: float = 1.0,
edge_scaling: float = 1.0,
smooth_normals: float = 0.0,
align_boundaries: bool = True,
smooth_iterations: int = 2,
extrinsic: bool = True,
symmetry: Any = ...,
symmetry_auto: bool = False,
symmetry_method: Literal["halfDomain", "fold"] = "halfDomain",
use_marked_lines: bool = True,
tidy_poles: bool = True,
drop_flat_loops: bool = False,
merge_distance: float = 0.0,
transfer_attributes: bool = True,
keep_uv_islands: bool = True,
shading: Literal["auto", "source"] = "auto",
keep_original: bool = False,
staged: str = "",
show_original: bool = False,
ghost_original: bool = False,
targets: Targets = None,
) -> Result
Rebuild the surface as an even, flowing quad mesh (Quad Flow: the Instant Meshes or AutoRemesher engine), applied as one undo step. UVs always follow the new surface; colors, weights, materials, face shading and blendshape targets follow with Transfer Attributes.
Remove Empty Render Triangles
tb.ops.mesh.remove_empty_render_triangles(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
area_tolerance: float = 5e-13,
) -> Result
Cut flat corners (a point on its neighbours' line, or on top of one) off faces whose triangles include one with no area. Points never move, so the surface and textures look the same.
Remove Lamina Faces
tb.ops.mesh.remove_lamina_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
) -> Result
Remove both faces of every pair that shares all its points with opposite winding (a zero-thickness double wall).
Remove Self-Intersecting Faces
tb.ops.mesh.remove_self_intersecting_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
) -> Result
Remove faces whose triangles pass through another face of the same mesh.
Repair Mesh
tb.ops.mesh.repair(
*,
meshes: Sequence[MeshRef] = ...,
fixes: Any,
dry_run: bool = False,
merge_distance: float = 0.00009999999747378752,
degenerate_distance: float = 0.00009999999747378752,
area_tolerance: float = 4.999999980020986e-13,
spike_angle: float = 5.0,
dispensable_angle: float = 5.013380527496338,
non_planar_angle: float = 5.0,
t_vertex_distance: float = 0.00009999999747378752,
fill_max_sides: int = 4,
) -> Result
Run Cleanup & Repair fixes on each target mesh in one undo step and report what each fix changed. Fixes run in this order, on the whole mesh: mergeNearby, fixWinding, removeLamina, dissolveDegenerate, collapseSpikes, removeEmptyRenderTriangles, removeSelfIntersections, resolveBowties, splitTVertices, dissolveRedundant, triangulateNonPlanar, splitNonPlanar, splitConcave, deleteLoose, fillHoles. With dryRun the effects are computed exactly and nothing is edited.
Reset Material Face Groups
tb.ops.mesh.reset_face_groups(
*,
meshes: Sequence[MeshRef] = ...,
targets: Targets = None,
) -> Result
Make every face use material slot 0 without changing the slot bindings.
Resolve Bowtie Vertices
tb.ops.mesh.resolve_bowtie_vertices(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
) -> Result
Split every point that joins separate fans of faces into one point per fan.
Reverse Normals
tb.ops.mesh.reverse_normals(
*,
meshes: Sequence[MeshRef] = ...,
face_indices: Sequence[int] = ...,
) -> Result
Flip the facing of faces: the selected faces in component mode (faces whose points are all selected), else every face of the selected meshes. UVs and other corner data stay on their points.
Rip Edge
tb.ops.mesh.rip_edge(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
fill: bool = False,
targets: Targets = None,
) -> Result
Tear the mesh along the selected edges (both sides stay in place).
Rip Faces
tb.ops.mesh.rip_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
fill: bool = False,
targets: Targets = None,
) -> Result
Detach the selected faces from their neighbours; the faces stay in place.
Rip Vertex
tb.ops.mesh.rip_vertex(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
fill: bool = False,
targets: Targets = None,
) -> Result
Tear the faces around each selected vertex into two groups.
Rotate Components
tb.ops.mesh.rotate_components(
*,
meshes: Sequence[MeshRef] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
axis: Vec3Like,
angle: float,
pivot: Vec3Like = ...,
) -> Result
Rotate the selected vertices, edges or faces about a world axis through a pivot.
Scale Components
tb.ops.mesh.scale_components(
*,
meshes: Sequence[MeshRef] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
factor: Vec3Like,
pivot: Vec3Like = ...,
basis: Any = ...,
) -> Result
Scale the selected vertices, edges or faces about a pivot along three axes (world axes by default).
Scatter on Surface
tb.ops.mesh.scatter_on_surface(
*,
surface: ObjectRef = ...,
instance: ObjectRef = ...,
place_on: Literal["surface", "points", "faces", "edges"] = "surface",
distribution: Literal["count", "density"] = "count",
count: int = 50,
density: float = 10.0,
seed: int = 0,
min_distance: float = 0.0,
align_to_normal: bool = True,
normal_offset: float = 0.0,
random_rotation: Vec3Like = [0.0, 180.0, 0.0],
scale_min: float = 1.0,
scale_max: float = 1.0,
random_offset: Vec3Like = [0.0, 0.0, 0.0],
vertex_set: str = "",
invert_vertex_set: bool = False,
add_as_modifier: bool = False,
keep_surface: bool = True,
) -> Result
Scatter copies of an object over a surface, or onto its points, face centers or edge midpoints, standing on the surface with random turn, size and offset. The copies become one new object; the surface and the instance stay. One undo step.
Screw
tb.ops.mesh.screw(
*,
meshes: Sequence[MeshRef] = ...,
add_as_modifier: bool = False,
axis: Literal["x", "y", "z"] = "z",
angle: float = 360.0,
steps: int = 16,
screw_offset: float = 0.0,
axis_object: ObjectRef = ...,
iterations: int = 1,
use_merge: bool = False,
merge_distance: float = 0.01,
flip_normals: bool = False,
calculate_order: bool = False,
smooth_shading: bool = True,
use_object_screw_offset: bool = False,
stretch_u: bool = False,
stretch_v: bool = False,
) -> Result
Sweep the mesh's profile edges around a local axis or an Axis Object (revolve, lathe or helical screw). Angle and Steps shape the sweep, Screw Offset and Iterations make a helix, Merge shares points on the axis. With Add as Modifier each mesh gets an editable Screw modifier instead.
Select Axis Loops
tb.ops.mesh.select_axis_loops(
*,
mesh: MeshRef = ...,
axes: Any = ["x", "y", "z"],
tolerance: float = 25.0,
targets: Targets = None,
) -> Result
Select the whole edge loops that run along chosen local axes (e.g. the loops running lengthwise along a limb) and count them per axis. Switches to edge mode and replaces the mesh's edge selection.
Find Intersecting Faces
tb.ops.mesh.select_intersecting(*, mesh: MeshRef = ..., select: bool = True) -> Result
Find faces that cut through other faces of the same mesh (exact triangle tests, any mesh size) and select them in Face mode.
Select Poles
tb.ops.mesh.select_poles(
*,
mesh: MeshRef = ...,
min_bend: float = 0.0,
targets: Targets = None,
) -> Result
Select the points where more or fewer than four edges meet (border points excluded), optionally only those on sharp bends, to review or fix them after a remesh. Switches to vertex mode and replaces the mesh's vertex selection.
Separate
tb.ops.mesh.separate(
*,
by: Literal["selection", "material", "looseParts"] = "selection",
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
) -> Result
Detach geometry into new mesh objects: 'selection' the selected faces (into '<name>_separated'), 'material' every material group but the first, 'looseParts' every disconnected piece (replacing the source with '<name>_1', '<name>_2', …).
Add to Component Set
tb.ops.mesh.set.add(*, set: str, members: Any = ..., mesh: MeshRef = ...) -> Result
Add the selected components or members to a set; a mesh without the set gets one of that name. Adding to the Seam Set or Hard Edge Set marks the edges. One undo step.
Create Component Set
tb.ops.mesh.set.create(
*,
name: str = ...,
members: Any = ...,
type: Literal["vertex", "edge", "face", "island"] = ...,
mesh: MeshRef = ...,
) -> Result
Create a Vertex, Edge, Face or UV Island Set from the selected components or members; the type follows the members. With several meshes, each gets a set of that name. Pass type (and mesh) for an empty set. One undo step.
Delete Component Set
tb.ops.mesh.set.delete(*, set: str, mesh: MeshRef = ...) -> Result
Delete a set (not its components) from every mesh that has it (or from mesh); the Seam Set and Hard Edge Set are built in. One undo step.
Difference of Component Sets
tb.ops.mesh.set.difference(
*,
sets: Any,
name: str = "Difference",
mesh: MeshRef = ...,
) -> Result
Create a set holding the members of the first of sets that are in none of the others.
Intersection of Component Sets
tb.ops.mesh.set.intersection(
*,
sets: Any,
name: str = "Intersection",
mesh: MeshRef = ...,
) -> Result
Create a set holding the members common to all sets.
List Component Sets
tb.ops.mesh.set.list(
*,
mesh: MeshRef = ...,
type: Literal["vertex", "edge", "face", "island"] = ...,
) -> Result
Every mesh's component sets (the Data panel's per-type boxes): set, type, object, built-in flag and member count. mesh keeps one mesh, type one type.
Mark Edge Set
tb.ops.mesh.set.mark_edges(
*,
set: str,
as_: Literal["seams", "hardEdges"],
mesh: MeshRef = ...,
) -> Result
Mark the edges of an Edge Set as seams or hard edges (adds them to the Seam Set or Hard Edge Set). One undo step.
Component Set Members
tb.ops.mesh.set.members(*, set: str, mesh: MeshRef = ...) -> Result
A set's members as names, e.g. "Cube.vtx[0:7]".
Remove from Component Set
tb.ops.mesh.set.remove(*, set: str, members: Any = ..., mesh: MeshRef = ...) -> Result
Remove the selected components or members from a set; removing from the Seam Set or Hard Edge Set clears the marks. One undo step.
Rename Component Set
tb.ops.mesh.set.rename(*, set: str, name: str, mesh: MeshRef = ...) -> Result
Rename a set on every mesh that has it (or on mesh); modifiers masked by the set follow the new name. One undo step.
Select Component Set
tb.ops.mesh.set.select(
*,
set: str,
mesh: MeshRef = ...,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Select the members of a component set on every mesh that has it (or on mesh); a UV Island Set selects the UV islands of its faces on the active UV map. One undo step.
Edit Component Set Members
tb.ops.mesh.set.set_members(*, set: str, members: Any, mesh: MeshRef = ...) -> Result
Replace a set's members with members on every mesh that has the set (the Edit Set dialog). One undo step.
Union of Component Sets
tb.ops.mesh.set.union(*, sets: Any, name: str = "Union", mesh: MeshRef = ...) -> Result
Create a set holding the members of any of sets.
Set Component Axis
tb.ops.mesh.set_component_axis(
*,
meshes: Sequence[MeshRef] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
axis: Literal["x", "y", "z"],
value: float,
) -> Result
Move the selected vertices, edges or faces onto one world coordinate, flattening them on that axis.
Set Edge Length
tb.ops.mesh.set_edge_length(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
source: Literal["value", "active", "shortest", "longest", "average"] = "value",
value: float = 1.0,
edge_index: int = ...,
adjustment: Literal["set", "add", "subtract"] = "set",
anchor: Literal["center", "start", "end"] = "center",
reverse_endpoints: bool = False,
space: Literal["world", "object"] = "world",
targets: Targets = None,
) -> Result
Give every selected edge (edges must not share vertices) a length: a value, the active edge's, or the shortest / longest / average of the selection; set, add or subtract, keeping the center, start or end in place.
Set Face Color
tb.ops.mesh.set_face_color(
*,
mesh: MeshRef = ...,
face_indices: Sequence[int] = ...,
rgba: Color4 = [1.0, 0.0, 0.0, 1.0],
attribute: str = "",
) -> Result
Paint the picked faces one flat color (a face-corner color attribute, exported as vertex colors).
Set Vertex Positions
tb.ops.mesh.set_positions(*, mesh: MeshRef = ..., positions: Any) -> Result
Replace every vertex position of a mesh (local space, scene units): a flat list [x0, y0, z0, x1, …] or a list of [x, y, z] triples, one per vertex.
Set Mesh Topology
tb.ops.mesh.set_topology(
*,
mesh: MeshRef = ...,
positions: Any,
faces: Any,
loose_edges: Any = ...,
) -> Result
Replace a mesh's vertices and faces in place, keeping the mesh (its objects, material slots, weight maps, blendshape targets and data layers). Data carries over by index for vertices and faces, by the two vertices for edges, and for corners when the corner still uses the same vertex; new elements take each layer's default. One undo step.
Shade Flat
tb.ops.mesh.shade_flat(*, meshes: Sequence[MeshRef] = ...) -> Result
Shade every face flat.
Shade Smooth
tb.ops.mesh.shade_smooth(*, meshes: Sequence[MeshRef] = ...) -> Result
Shade every face smooth.
Sharpen Edges
tb.ops.mesh.sharpen_edges(
*,
meshes: Sequence[MeshRef] = ...,
angle: float = 30.0,
mode: Literal["add", "replace"] = "add",
scope: Literal["auto", "mesh", "selection"] = "auto",
sharp: bool = True,
crease: bool = True,
bevel_weight: bool = True,
seam: bool = False,
smooth: bool = True,
smooth_angle: float = 60.0,
dry_run: bool = False,
) -> Result
Mark every manifold edge whose faces meet at the angle or more as sharp, creased and bevel-weighted (Hard Surface Sharpen), then shade smooth by angle.
Shear
tb.ops.mesh.shear(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
shear_axis: Literal["x", "y", "z"] = "x",
offset_axis: Literal["x", "y", "z"] = "y",
amount: float = 0.0,
add_as_modifier: bool = False,
) -> Result
Slide the vertices along one axis in proportion to their distance from the selection center along another (object space), through the Shear modifier whose handle stands at the selection center. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Show Panels
tb.ops.mesh.show_panels(
*,
show: bool = True,
mesh: MeshRef = ...,
panel_flatness: float = 2.0,
panel_feature_angle: float = -1.0,
min_line_length: float = 0.0,
line_gap_reach: float = 0.0,
keep_uv_islands: bool = True,
) -> Result
Show source feature lines and flat-panel tints in the mounted Model viewport, including over a live Remesh result. Display only: no geometry, selection or Undo changes. A successful show queues background analysis; headless callers receive an unavailable reason. show=false always clears the display, including with no selection or mounted viewport.
Slide Edges
tb.ops.mesh.slide_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
offset: float = 0.1,
factor: float = ...,
even: bool = False,
flip: bool = False,
clamp: bool = True,
targets: Targets = None,
) -> Result
Slide the selected edge loops along the faces on either side.
Slide Vertices
tb.ops.mesh.slide_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
offset: float = 0.1,
factor: float = ...,
even: bool = False,
flip: bool = False,
clamp: bool = True,
targets: Targets = None,
) -> Result
Slide the selected vertices along their connected edges toward unselected neighbours.
Smooth
tb.ops.mesh.smooth(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
mesh_id: MeshRef = ...,
vertex_indices: Sequence[int] = ...,
iterations: int = 4,
method: Literal["uniform", "laplacian"] = "uniform",
lambda_: float = 1.0,
lambda_border: float = 0.5,
preserve_volume: bool = True,
normalized: bool = False,
vertex_set: str | None = ...,
invert_vertex_set: bool = False,
strength: float = 0.5,
preserve_boundary: bool = True,
axes: Any = ...,
staged: str = ...,
add_as_modifier: bool = False,
) -> Result
Smooth (formerly Smooth Vertices): relax the vertices with uniform averaging or implicit cotangent Laplacian smoothing, through the Smooth modifier. The component selection becomes its weight map; with Add as Modifier off it is applied at once.
Smooth by Angle
tb.ops.mesh.smooth_by_angle(
*,
meshes: Sequence[MeshRef] = ...,
angle: float = 60.0,
ignore_sharpness: bool = False,
add_as_modifier: bool = False,
) -> Result
Shade smooth, keeping edges sharper than the angle hard.
Snap to Target
tb.ops.mesh.snap_to_target(
*,
mesh: MeshRef = ...,
sources: Sequence[int] = ...,
target: int = ...,
) -> Result
Move the selected vertices onto the last one picked, or the selected edges / faces so their centers meet the last one's center. The target stays put; points shared by several moved components move once.
Solidify
tb.ops.mesh.solidify(
*,
meshes: Sequence[MeshRef] = ...,
add_as_modifier: bool = False,
face_indices: Sequence[int] = ...,
vertex_indices: Sequence[int] = ...,
edge_indices: Sequence[int] = ...,
mode: Literal["simple", "complex"] = "simple",
thickness_mode: Literal["fixed", "even", "constraints"] = "constraints",
boundary_shape: Literal["none", "round", "flat"] = "none",
thickness: float = 0.05,
offset: float = 0.0,
close_borders: bool = True,
only_rim: bool = False,
even_thickness: bool = False,
merge_threshold: float = 0.0001,
thickness_clamp: float = 0.0,
angle_clamp: bool = False,
flip_faces: bool = False,
outer_crease: float = 0.0,
inner_crease: float = 0.0,
bevel_convex: float = 0.0,
rim_crease: float = 0.0,
) -> Result
Give surfaces thickness: whole mesh objects, or only the picked faces in component mode. A face region keeps unpicked neighbours and loose wires untouched; its borders get rim walls. Complex mode thickens whole meshes with edges shared by three or more faces. With Add as Modifier each mesh gets the same editable Solidify result instead.
Sort Elements
tb.ops.mesh.sort_elements(
*,
meshes: Sequence[MeshRef] = ...,
elements: Literal["vertex", "face"] = ...,
type: Literal["direction", "distance", "material", "selected", "random", "reverse"] = "direction",
axis: Literal["x", "y", "z"] = "z",
axis_vector: Vec3Like = ...,
center: Vec3Like = [0.0, 0.0, 0.0],
seed: int = 0,
reverse: bool = False,
) -> Result
Reorder the points or faces of a mesh (along an axis, by distance, by material, picked first, at random or reversed). Only the index order changes; the shape, UVs and attributes stay.
Extrude Spin
tb.ops.mesh.spin(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
steps: int = 12,
angle: float = 360.0,
axis: Literal["x", "y", "z"] = "y",
axis_vector: Vec3Like = ...,
center: Vec3Like = [0.0, 0.0, 0.0],
dupli: bool = False,
flip_normals: bool = False,
) -> Result
Sweep the picked faces, edges or points around an axis in steps, building walls (or rotated copies with Duplicates). A full turn closes into a ring.
Split Concave Faces
tb.ops.mesh.split_concave_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
) -> Result
Split every concave polygon into the fewest convex pieces. Works on the face selection when there is one, else the whole mesh.
Split Edge at T-vertex
tb.ops.mesh.split_edge_at_t_vertex(
*,
meshes: Sequence[MeshRef] = ...,
distance: float = 0.0001,
pairs: Any = ...,
) -> Result
Thread each T-vertex (a point lying on an edge it is not part of) into that edge, closing the crack.
Split Non-Planar Faces
tb.ops.mesh.split_non_planar_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
angle_threshold: float = 5.0,
) -> Result
Split every twisted polygon along its flattest diagonals until each piece is flat within the angle. Works on the face selection when there is one, else the whole mesh.
Subdivide Edges
tb.ops.mesh.subdivide_edges(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
cuts: int = 1,
smoothness: float = 0.0,
fractal: float = 0.0,
along_normal: float = 0.0,
seed: int = 0,
cut_faces: bool = False,
quad_corner: Literal["innerVert", "path", "straightCut", "fan"] = "straightCut",
ngon: bool = True,
targets: Targets = None,
) -> Result
Insert evenly spaced vertices on each selected edge (1-100 cuts), optionally smoothed, randomized or cut across faces.
Subdivide Faces
tb.ops.mesh.subdivide_faces(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
iterations: int = 1,
targets: Targets = None,
) -> Result
Split each selected face into quads around its center (neighbours keep the new edge midpoints); repeated for more iterations.
Subdivide
tb.ops.mesh.subdivide_smooth(
*,
meshes: Sequence[MeshRef] = ...,
level: int = 1,
add_as_modifier: bool = False,
boundary: Literal["roundCorners", "keepCorners"] = "roundCorners",
use_creases: bool = True,
uv_smooth: Literal["none", "keepCorners", "keepCornersJunctions", "keepCornersJunctionsConcave", "keepBoundaries", "all"] = "keepBoundaries",
) -> Result
Smooth the meshes and split every face into quads (Catmull-Clark), Level times; with Add as Modifier each mesh gets an editable Subdivide modifier instead.
Subdivide Vertices
tb.ops.mesh.subdivide_vertices(
*,
mesh: MeshRef = ...,
indices: Sequence[int] = ...,
cuts: int = 1,
smoothness: float = 0.0,
fractal: float = 0.0,
along_normal: float = 0.0,
seed: int = 0,
cut_faces: bool = False,
quad_corner: Literal["innerVert", "path", "straightCut", "fan"] = "straightCut",
ngon: bool = True,
targets: Targets = None,
) -> Result
Subdivide the edges whose two endpoints are selected.
Target Weld
tb.ops.mesh.target_weld(
*,
mesh: MeshRef = ...,
kind: Literal["vertex", "edge"] = "vertex",
source: int,
target: int,
at: Literal["target", "center"] = "target",
) -> Result
Merge one vertex onto another (or one edge onto another, end to end, so neither flips) at the target, or at their center: the Target Weld tool's drop. Indices are dense indices of one mesh.
Tidy Poles
tb.ops.mesh.tidy_poles(
*,
meshes: Sequence[MeshRef] = ...,
protect_angle: float = 30.0,
rounds: int = 6,
) -> Result
Move poles (points where more or fewer than four edges meet) off sharp bends by turning the edge between two quads; points never move. Edges bending more than Keep Bends Over, sharp and seam marks, UV seams and material borders never turn, and UVs, colors and edge data follow the new edges. Run it after a remesh. One undo step.
Show / Hide Cutters
tb.ops.mesh.toggle_cutters(
*,
nodes: Sequence[ObjectRef] = ...,
visible: bool = ...,
) -> Result
Hide the live cutters of the selected objects (or of every object when none of the selection has any), or show them again when they are all hidden. The booleans keep cutting while the cutters are hidden.
Transfer Attributes (UV Space)
tb.ops.mesh.transfer_attributes_uv(
*,
mesh: MeshRef = ...,
targets: Sequence[ObjectRef] = ...,
source: MeshRef = ...,
source_placement: ObjectRef = ...,
channels: Any = ["uv"],
staged: str = ...,
) -> Result
Copy UV maps, colors and normals as one atomic edit. UV maps project by the scene surface; other channels match the original active/default UV layout. Positions by UV are Transfer Points (Data Transfer's UV mapping). All chosen channels must be ready before accepting.
Move Components
tb.ops.mesh.translate_components(
*,
meshes: Sequence[MeshRef] = ...,
soft_radius: float = 0.0,
soft_falloff: Literal["smooth", "linear", "sharp", "root", "sphere"] = "smooth",
soft_mode: Literal["volume", "surface"] = "volume",
offset: Vec3Like,
) -> Result
Move the selected vertices, edges or faces by a world-space offset.
Triangulate
tb.ops.mesh.triangulate(
*,
meshes: Sequence[MeshRef] = ...,
quad_method: Literal["BEAUTY", "FIXED", "FIXED_ALTERNATE", "SHORTEST_DIAGONAL", "LONGEST_DIAGONAL"] = "BEAUTY",
ngon_method: Literal["BEAUTY", "CLIP"] = "BEAUTY",
min_vertices: int = 4,
face_indices: Sequence[int] = ...,
add_as_modifier: bool = False,
) -> Result
Split polygons into triangles. Works on the face selection when there is one, else the whole mesh.
Triangulate Non-Planar Faces
tb.ops.mesh.triangulate_non_planar_faces(
*,
meshes: Sequence[MeshRef] = ...,
indices: Sequence[int] = ...,
angle_threshold: float = 5.0,
) -> Result
Triangulate faces with a corner further out of their plane than the angle.
Tris to Quads
tb.ops.mesh.tris_to_quads(
*,
meshes: Sequence[MeshRef] = ...,
angle_threshold: float = 40.0,
shape_angle_threshold: float = 40.0,
compare_uv: bool = False,
compare_vcol: bool = False,
compare_seam: bool = False,
compare_sharp: bool = False,
compare_material: bool = False,
deselect_joined: bool = False,
face_indices: Sequence[int] = ...,
) -> Result
Merge triangle pairs into quads, best shapes first. Works on the face selection when there is one, else the whole mesh.
Add UV Map
tb.ops.mesh.uv_map.add(*, mesh: MeshRef = ..., name: str = "UVMap") -> Result
Add a UV map (a copy of the active map, or zeros when there is none).
Copy UV Map
tb.ops.mesh.uv_map.copy(
*,
mesh: MeshRef = ...,
uv_map: str,
name: str = "UVMap",
) -> Result
Copy a UV map into a new map.
Read UVs
tb.ops.mesh.uv_map.get(
*,
mesh: MeshRef = ...,
map: str = ...,
islands: bool = False,
) -> Result
Read a UV map: one [u, v] per face corner in face order (flat), the pinned corners, and with 'islands' the island of each face (faces joined where their UVs continue and no seam separates them). Read-only.
Remove UV Map
tb.ops.mesh.uv_map.remove(*, mesh: MeshRef = ..., uv_map: str) -> Result
Remove a UV map (its pin layer goes with it).
Rename UV Map
tb.ops.mesh.uv_map.rename(*, mesh: MeshRef = ..., uv_map: str, name: str) -> Result
Rename a UV map.
Set UVs
tb.ops.mesh.uv_map.set(
*,
mesh: MeshRef = ...,
map: str = ...,
uvs: Any,
corners: Sequence[int] = ...,
) -> Result
Write UV coordinates in one undo step: every corner (uvs only, one [u, v] per face corner) or the listed 'corners' (one UV each). Pins and seams are kept.
Set Active UV Map
tb.ops.mesh.uv_map.set_active(*, mesh: MeshRef = ..., uv_map: str) -> Result
Make a UV map the one being edited.
Set Clone UV Map
tb.ops.mesh.uv_map.set_clone(*, mesh: MeshRef = ..., uv_map: str = ...) -> Result
Assign the explicit named UV map; omit uvMap to clear this independent role.
Set Render UV Map
tb.ops.mesh.uv_map.set_render(*, mesh: MeshRef = ..., uv_map: str) -> Result
Make a UV map the one used for rendering and export.
Set Stencil UV Map
tb.ops.mesh.uv_map.set_stencil(*, mesh: MeshRef = ..., uv_map: str = ...) -> Result
Assign the explicit named UV map; omit uvMap to clear this independent role.
Vertex Curve
tb.ops.mesh.vertex_curve(
*,
mesh: MeshRef = ...,
vertex_indices: Sequence[int] = ...,
mix: float = 1.0,
bulge: float = 1.0,
flip: bool = False,
rotate90: bool = False,
offset: float = 0.0,
spline_tension: float = 0.0,
space_evenly: bool = False,
path_metric: Literal["length", "edges"] = "length",
end_tangents: Literal["surface", "selection"] = "surface",
) -> Result
Lay the mesh paths between the picked points onto one smooth curve through them, in pick order: an arc for two points, the circle through three, a smooth spline for four or more.
Voxel Remesh
tb.ops.mesh.voxel_remesh(
*,
meshes: Sequence[MeshRef] = ...,
voxel_size: float = ...,
preserve_volume: bool = True,
preserve_attributes: bool = True,
relax: int = 2,
) -> Result
Rebuild the selected meshes as even quads on a voxel grid: joins touching parts, seals small holes and removes stretched sculpt topology. Mask, face sets, colors and UVs follow by projection; one undo step.
Add Weight Map
tb.ops.mesh.weight_map.add(*, mesh: MeshRef = ..., name: str = "Weight Map") -> Result
Add an empty deform (skin) weight map and make it active. Duplicate names get a numeric suffix.
Assign to Weight Map
tb.ops.mesh.weight_map.assign(
*,
mesh: MeshRef = ...,
map: str = ...,
weight: float = 1.0,
mode: Literal["replace", "add", "subtract"] = "replace",
indices: Sequence[int] = ...,
) -> Result
Assign the selected vertices to a weight map with a weight (membership is kept even at weight 0).
Clean Weight Maps
tb.ops.mesh.weight_map.clean(
*,
mesh: MeshRef = ...,
map: str = ...,
all_maps: bool = False,
limit: float = 0.0,
keep_single: bool = False,
) -> Result
Remove weights at or below the limit from the active map (or every unlocked map).
Flood Weight Map
tb.ops.mesh.weight_map.flood(
*,
node: ObjectRef = ...,
map: str,
operation: Literal["replace", "add", "subtract", "scale", "smooth"] = "replace",
value: float = 1.0,
strength: float = 1.0,
min: float = 0.0,
max: float = 1.0,
iterations: int = 1,
) -> Result
Apply a paint operation to every vertex of a weight map: Replace moves each weight toward value by strength, Add / Subtract by value·strength, Scale erases by strength, Smooth blends each vertex toward its neighbours (iterations passes). Results are clamped to min..max. One undo step.
Lock Weight Map
tb.ops.mesh.weight_map.lock(
*,
mesh: MeshRef = ...,
map: str = ...,
locked: bool = True,
) -> Result
Lock or unlock a weight map's weights (locked maps refuse edits and keep their weights when normalizing).
Mirror Weight Map
tb.ops.mesh.weight_map.mirror(
*,
mesh: MeshRef = ...,
map: str = ...,
flip_names: bool = True,
tolerance: float = 0.0001,
) -> Result
Mirror a weight map's weights across X. With flip names the weights move to the opposite side's map (Arm.L ↔ Arm.R), created when missing.
Normalize Weight Map
tb.ops.mesh.weight_map.normalize(*, mesh: MeshRef = ..., map: str = ...) -> Result
Scale a weight map so its largest weight is 1.
Normalize All Weight Maps
tb.ops.mesh.weight_map.normalize_all(*, mesh: MeshRef = ...) -> Result
Make every vertex's unlocked weights sum to 1 (locked maps keep theirs).
Remove Weight Map
tb.ops.mesh.weight_map.remove(*, mesh: MeshRef = ..., map: str = ...) -> Result
Remove a weight map and its weights.
Remove Empty Weight Maps
tb.ops.mesh.weight_map.remove_empty(*, mesh: MeshRef = ...) -> Result
Remove weight maps without any member.
Remove from Weight Map
tb.ops.mesh.weight_map.remove_from(
*,
mesh: MeshRef = ...,
map: str = ...,
indices: Sequence[int] = ...,
) -> Result
Remove the selected vertices from a weight map.
Rename Weight Map
tb.ops.mesh.weight_map.rename(
*,
mesh: MeshRef = ...,
map: str = ...,
name: str,
) -> Result
Rename a weight map; its weights stay.
Select Weight Map
tb.ops.mesh.weight_map.select(
*,
mesh: MeshRef = ...,
map: str = ...,
deselect: bool = False,
) -> Result
Select (or deselect) the members of a weight map in vertex mode.
Set Active Weight Map
tb.ops.mesh.weight_map.set_active(*, mesh: MeshRef = ..., map: str = ...) -> Result
Make a weight map the active one.
Set Weight Map Weights
tb.ops.mesh.weight_map.set_weights(
*,
node: ObjectRef = ...,
map: str,
weights: Any = ...,
indices: Sequence[int] = ...,
values: Any = ...,
drag: int = ...,
) -> Result
Set a weight map's weights: weights (every vertex) or indices with values (just those vertices; the brush's stroke frames). Values are clamped to 0..1. One undo step; calls with the same drag id join one gesture.
Weighted Normals
tb.ops.mesh.weighted_normals(
*,
meshes: Sequence[MeshRef] = ...,
mode: Literal["face-area", "angle-at-vert", "combined"] = "face-area",
weight: int = 50,
keep_sharp: bool = False,
threshold: float = 0.01,
face_influence: bool = False,
vertex_set: str = ...,
invert_vertex_set: bool = False,
add_as_modifier: bool = False,
) -> Result
Bias each point's normal toward its largest (or widest-angled) faces, so flat panels shade flat and bevels stay smooth (stored as custom normals).
Weld
tb.ops.mesh.weld(
*,
meshes: Sequence[MeshRef] = ...,
mode: Literal["all", "connected"] = "all",
distance: float = 0.001,
only_loose_edges: bool = False,
vertex_set: str = "",
invert_vertex_set: bool = False,
unselected: bool = False,
sharp_edges: bool = False,
vertices: Sequence[int] = ...,
add_as_modifier: bool = False,
) -> Result
Merge nearby points (All) or collapse short edges (Connected). Limited to the component selection when there is one, else the whole mesh.
Wireframe
tb.ops.mesh.wireframe(
*,
meshes: Sequence[MeshRef] = ...,
add_as_modifier: bool = False,
face_indices: Sequence[int] = ...,
vertex_indices: Sequence[int] = ...,
edge_indices: Sequence[int] = ...,
style: Literal["frame", "tubes"] = "frame",
thickness: float = 0.05,
offset: float = 0.0,
replace_original: bool = True,
use_boundary: bool = False,
even_thickness: bool = True,
relative_thickness: bool = False,
use_crease: bool = False,
crease_weight: float = 1.0,
material_offset: int = 0,
vertex_set: str | None = None,
invert_vertex_set: bool = False,
weight_factor: float = 0.0,
) -> Result
Turn polygon edges into solid bars: Frame builds a connected face lattice; Tubes wraps each unique polygon edge in its own capped square bar. With Add as Modifier each mesh gets the same editable result.