Skip to content
AlphaToolBox3D is in early alpha: features are incomplete and things can break. Use it at your own risk and keep copies of your files. Report a problem
ToolBox3D

Docs · Python API

tb.ops.mesh

217 operations. Without targets=, an operation works on the current selection, like its button in the editor.

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.

  • Operation mesh.add_divisions
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).

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.

  • Operation mesh.add_divisions_to_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
divisionsint1Number of division passes. (1…6).

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.

  • Operation mesh.add_support_loops
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
edgesLiteral["hard", "sharp", "selection"]"hard"Which lines get chamfered and held: edges whose faces meet at the Sharp Angle or more (plus sharp marks), the sharp marks only, or the selected edges. (hard / sharp / selection).
auto_angleboolTrueHard Edges: find the angle that separates real hard lines from curvature in the mesh itself (as Remesh does).
sharp_anglefloat30.0Hard Edges: faces meeting at this angle or more make a line. (degrees; 1…180).
chamfer_widthfloat0.5 % of the model size. (scene units; 0…1000000)Width of the narrow bevel on each line (0: no chamfer).
chamfer_segmentsint2Segments across each chamfer; even counts avoid a triangle where three chamfers meet. (1…8).
chamfer_profilefloat0.50.5 is round, 0.25 a straight cut, higher bulges outward. (0…1).
clamp_overlapboolTrueShrink the chamfer where neighbouring chamfers would overlap.
support_loopsint1Holding loops inside each flat panel, parallel to its border. (0…3).
crease_bordersboolFalseAlso set subdivision crease 1 on the chamfer borders, for an even tighter edge under Subdivision.
support_distancefloat0.5 % of the model size; narrow panels use a smaller gap. (scene units; 0…1000000)Gap between the chamfer and the first loop, and between loops.

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.

  • Operation mesh.adjust_contour
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
verticesSequence[int]—Stable vertex ids of the loop; omit to use the selection. (0…4294967295).
slidefloat0.0Distance along the loop's axis (world). (scene units; -1000000…1000000).
slide_edgesfloat0.0Slide in the ring's own edge lengths instead (added to slide). (-64…64).
rotatefloat0.0Turn around the axis, in segments (1 moves every vertex to its neighbour's place). (-64…64).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).

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.

  • Operation mesh.apply_cutters
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Objects whose cutters to apply (default: the selection).

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.

  • Operation mesh.attribute.add
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
namestr"Attribute"Name.
domainLiteral["point", "edge", "face", "corner"]"point"Domain (point / edge / face / corner).
typeLiteral["float", "int", "bool", "float2", "float3", "float_color", "byte_color"]"float"Type (float / int / bool / float2 / float3 / float_color / byte_color).

Remove Attribute

tb.ops.mesh.attribute.remove(*, mesh: MeshRef = ..., attribute: str) -> Result

Remove a named attribute.

  • Operation mesh.attribute.remove
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
attributestrrequiredAttribute.

Rename Attribute

tb.ops.mesh.attribute.rename(
    *,
    mesh: MeshRef = ...,
    attribute: str,
    name: str,
) -> Result

Rename a named attribute; active and render references follow.

  • Operation mesh.attribute.rename
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
attributestrrequiredAttribute.
namestrrequiredNew name (made unique).

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.

  • Operation mesh.attribute.set_value
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
attributestrrequiredAttribute.
domainLiteral["point", "edge", "face", "corner"]"point"Domain (point / edge / face / corner).
valuefloat1.0Value.
indicesSequence[int]—Dense vertex indices (default: the vertices of the component selection). (0…4294967295).

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.

  • Operation mesh.beautify_fill
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
angle_limitfloat180.0Only turn an edge whose two triangles meet at no more than this angle, so creases stay. (degrees; 0…180).

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.

  • Operation mesh.bend
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
bend_axisLiteral["x", "y", "z"]"y"Axis the selection bends around. (x / y / z).
anglefloat0.0Bend angle in degrees. (degrees; -360…360).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.bevel_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.
widthfloat—Bevel amount in the current distance unit, or a percentage in Percent mode. Omit for a size that suits the picked geometry (5% of the selection size, with Clamp Overlap on). Zero leaves the mesh unchanged. (scene units; 0…1000000).
segmentsint1Number of segments across the bevel, from 1 to 1000. (1…1000).
amount_modeLiteral["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"]"OFFSET"How the amount is measured: offset from the edge, strip width, depth, percentage of the adjacent edges, or absolute distance along them. (OFFSET / WIDTH / DEPTH / PERCENT / ABSOLUTE).
limit_methodLiteral["NONE", "ANGLE", "WEIGHT", "GROUP"]"NONE"Limit the picked elements by angle, a weight attribute, or a Vertex Set. (NONE / ANGLE / WEIGHT / GROUP).
angle_limitfloat30.0Angle limit: only edges whose faces meet at more than this angle bevel. (degrees; 0…180).
weight_attributestr"bevel_weight_edge"Weight limit: the float attribute whose value scales the amount (elements at zero stay).
vertex_setstr""Vertex Set limit: the Vertex Set whose members bevel.
invert_vertex_setboolFalseVertex Set limit: bevel the elements outside the set instead.
profile_shapefloat0.5Cross-section shape: 0.5 is round, 0.25 a straight chamfer, 1 a square corner, 0 an inward square. (0…1).
profile_typeLiteral["SUPERELLIPSE", "CUSTOM"]"SUPERELLIPSE"Standard uses Profile Shape; Custom uses a molding profile. (SUPERELLIPSE / CUSTOM).
custom_profileLiteral["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"]"LINE"The custom cross-section (profile presets; Supports and Steps follow the segment count). (LINE / SUPPORTS / CORNICE / CROWN / STEPS).
profile_pointsAny—Your own profile: [[x, y], [x, y, true], [x, y, [in x, in y, out x, out y]], [x, y, [..4], "aligned"], …] from (1, 0) at the start face to (0, 1) at the end face (true: a sharp corner; four numbers: free Bezier handles; "aligned": handles kept opposite). Overrides Custom Profile.
mesh_methodLiteral["ADJ", "CUTOFF"]"ADJ"How corners where three or more beveled edges meet are filled: a rounded grid, or flat cutoff faces with one center face. (ADJ / CUTOFF).
miter_outerLiteral["SHARP", "PATCH", "ARC"]"SHARP"Pattern where three or more beveled edges meet at a reflex corner: a sharp point, a straight patch, or a round arc. (SHARP / PATCH / ARC).
miter_innerLiteral["SHARP", "ARC"]"SHARP"Pattern where two beveled edges meet at an ordinary corner: a sharp point, or a round arc spread along the edges. (SHARP / ARC).
spreadfloat0.1How far an inner Arc miter spreads its two ends along their edges. (0…1000000).
clampbool—Limit the amount so neighbouring bevels do not overlap (on by default when the amount is automatic).
harden_normalsboolFalseKeep the faces next to the bevel shading flat and blend the bevel between them (custom normals).
face_strength_modeLiteral["NONE", "NEW", "AFFECTED", "ALL"]"NONE"Mark faces for Weighted Normal's Face Influence: bevel strips medium, corner patches weak, the other faces strong. New marks only the new faces, Affected also the rebuilt ones, All every face. (NONE / NEW / AFFECTED / ALL).
materialint-1Material slot for the new faces; -1 inherits the adjacent faces' material. (-1…32767).
loop_slideboolTrueSlide the bevel boundary along a single unbeveled edge in between where possible; off keeps the offset-line intersection.

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.

  • Operation mesh.bevel_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.
widthfloat—Bevel amount in the current distance unit, or a percentage in Percent mode. Omit for a size that suits the picked geometry (5% of the selection size, with Clamp Overlap on). Zero leaves the mesh unchanged. (scene units; 0…1000000).
segmentsint1Number of segments across the bevel, from 1 to 1000. (1…1000).
amount_modeLiteral["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"]"OFFSET"How the amount is measured: offset from the edge, strip width, depth, percentage of the adjacent edges, or absolute distance along them. (OFFSET / WIDTH / DEPTH / PERCENT / ABSOLUTE).
limit_methodLiteral["NONE", "ANGLE", "WEIGHT", "GROUP"]"NONE"Limit the picked elements by angle, a weight attribute, or a Vertex Set. (NONE / ANGLE / WEIGHT / GROUP).
angle_limitfloat30.0Angle limit: only edges whose faces meet at more than this angle bevel. (degrees; 0…180).
weight_attributestr"bevel_weight_edge"Weight limit: the float attribute whose value scales the amount (elements at zero stay).
vertex_setstr""Vertex Set limit: the Vertex Set whose members bevel.
invert_vertex_setboolFalseVertex Set limit: bevel the elements outside the set instead.
profile_shapefloat0.5Cross-section shape: 0.5 is round, 0.25 a straight chamfer, 1 a square corner, 0 an inward square. (0…1).
profile_typeLiteral["SUPERELLIPSE", "CUSTOM"]"SUPERELLIPSE"Standard uses Profile Shape; Custom uses a molding profile. (SUPERELLIPSE / CUSTOM).
custom_profileLiteral["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"]"LINE"The custom cross-section (profile presets; Supports and Steps follow the segment count). (LINE / SUPPORTS / CORNICE / CROWN / STEPS).
profile_pointsAny—Your own profile: [[x, y], [x, y, true], [x, y, [in x, in y, out x, out y]], [x, y, [..4], "aligned"], …] from (1, 0) at the start face to (0, 1) at the end face (true: a sharp corner; four numbers: free Bezier handles; "aligned": handles kept opposite). Overrides Custom Profile.
mesh_methodLiteral["ADJ", "CUTOFF"]"ADJ"How corners where three or more beveled edges meet are filled: a rounded grid, or flat cutoff faces with one center face. (ADJ / CUTOFF).
miter_outerLiteral["SHARP", "PATCH", "ARC"]"SHARP"Pattern where three or more beveled edges meet at a reflex corner: a sharp point, a straight patch, or a round arc. (SHARP / PATCH / ARC).
miter_innerLiteral["SHARP", "ARC"]"SHARP"Pattern where two beveled edges meet at an ordinary corner: a sharp point, or a round arc spread along the edges. (SHARP / ARC).
spreadfloat0.1How far an inner Arc miter spreads its two ends along their edges. (0…1000000).
clampbool—Limit the amount so neighbouring bevels do not overlap (on by default when the amount is automatic).
harden_normalsboolFalseKeep the faces next to the bevel shading flat and blend the bevel between them (custom normals).
face_strength_modeLiteral["NONE", "NEW", "AFFECTED", "ALL"]"NONE"Mark faces for Weighted Normal's Face Influence: bevel strips medium, corner patches weak, the other faces strong. New marks only the new faces, Affected also the rebuilt ones, All every face. (NONE / NEW / AFFECTED / ALL).
materialint-1Material slot for the new faces; -1 inherits the adjacent faces' material. (-1…32767).
loop_slideboolTrueSlide the bevel boundary along a single unbeveled edge in between where possible; off keeps the offset-line intersection.

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).

  • Operation mesh.bevel_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.
offsetfloat—Bevel amount in the current distance unit, or a percentage in Percent mode. Omit for a size that suits the picked geometry (5% of the selection size, with Clamp Overlap on). Zero leaves the mesh unchanged. (scene units; 0…1000000).
segmentsint1Number of segments across the bevel, from 1 to 1000. (1…1000).
amount_modeLiteral["OFFSET", "WIDTH", "DEPTH", "PERCENT", "ABSOLUTE"]"OFFSET"How the amount is measured: offset from the edge, strip width, depth, percentage of the adjacent edges, or absolute distance along them. (OFFSET / WIDTH / DEPTH / PERCENT / ABSOLUTE).
limit_methodLiteral["NONE", "WEIGHT", "GROUP"]"NONE"Limit the picked elements by angle, a weight attribute, or a Vertex Set. (NONE / WEIGHT / GROUP).
weight_attributestr"bevel_weight_vert"Weight limit: the float attribute whose value scales the amount (elements at zero stay).
vertex_setstr""Vertex Set limit: the Vertex Set whose members bevel.
invert_vertex_setboolFalseVertex Set limit: bevel the elements outside the set instead.
profile_shapefloat0.5Cross-section shape: 0.5 is round, 0.25 a straight chamfer, 1 a square corner, 0 an inward square. (0…1).
profile_typeLiteral["SUPERELLIPSE", "CUSTOM"]"SUPERELLIPSE"Standard uses Profile Shape; Custom uses a molding profile. (SUPERELLIPSE / CUSTOM).
custom_profileLiteral["LINE", "SUPPORTS", "CORNICE", "CROWN", "STEPS"]"LINE"The custom cross-section (profile presets; Supports and Steps follow the segment count). (LINE / SUPPORTS / CORNICE / CROWN / STEPS).
profile_pointsAny—Your own profile: [[x, y], [x, y, true], [x, y, [in x, in y, out x, out y]], [x, y, [..4], "aligned"], …] from (1, 0) at the start face to (0, 1) at the end face (true: a sharp corner; four numbers: free Bezier handles; "aligned": handles kept opposite). Overrides Custom Profile.
mesh_methodLiteral["ADJ", "CUTOFF"]"ADJ"How corners where three or more beveled edges meet are filled: a rounded grid, or flat cutoff faces with one center face. (ADJ / CUTOFF).
miter_outerLiteral["SHARP", "PATCH", "ARC"]"SHARP"Pattern where three or more beveled edges meet at a reflex corner: a sharp point, a straight patch, or a round arc. (SHARP / PATCH / ARC).
miter_innerLiteral["SHARP", "ARC"]"SHARP"Pattern where two beveled edges meet at an ordinary corner: a sharp point, or a round arc spread along the edges. (SHARP / ARC).
spreadfloat0.1How far an inner Arc miter spreads its two ends along their edges. (0…1000000).
clampbool—Limit the amount so neighbouring bevels do not overlap (on by default when the amount is automatic).
harden_normalsboolFalseKeep the faces next to the bevel shading flat and blend the bevel between them (custom normals).
face_strength_modeLiteral["NONE", "NEW", "AFFECTED", "ALL"]"NONE"Mark faces for Weighted Normal's Face Influence: bevel strips medium, corner patches weak, the other faces strong. New marks only the new faces, Affected also the rebuilt ones, All every face. (NONE / NEW / AFFECTED / ALL).
materialint-1Material slot for the new faces; -1 inherits the adjacent faces' material. (-1…32767).

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.

  • Operation mesh.bisect
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
axisLiteral["x", "y", "z"]"y"Axis the cutting plane faces along. (x / y / z).
offsetfloat0.0Distance of the plane along the axis from the centre of the selection (the selected components' bounds, else the whole mesh). (scene units; -100…100).
plane_pointVec3Like—A point on a free cutting plane (with planeNormal; replaces axis and offset). (scene units).
plane_normalVec3Like—Normal of a free cutting plane; its side is the outer side.
plane_spaceLiteral["local", "world"]"local"Space of planePoint / planeNormal: each mesh's own space, or world space (a plane drawn in the viewport cuts every mesh where it lies). (local / world).
clear_innerboolFalseDelete the geometry behind the plane.
clear_outerboolFalseDelete the geometry in front of the plane.
flipboolFalseReverse the plane: swaps the inner and outer sides.
fillboolTrueClose the opening with a face when exactly one side is cleared.
selected_onlyboolFalseCut and clear only the selected faces; their neighbours just gain the cut points.
thresholdfloat0.0Points this close to the plane are reused as cut points instead of adding new ones. (scene units; 0…10).

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.

  • Operation mesh.blendshape.add_live_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
nodeObjectRef—The mesh object (default: the active object).
sourceObjectRefrequiredThe mesh object whose shape the target follows.
namestr""Name of the new target (made unique; empty: the source object's name).
weightfloat1.0The new target's weight. (factor; -10…10).

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.

  • Operation mesh.blendshape.add_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
namestr"Target"Name of the new target (made unique).
from_mixboolFalseStart from the current mix of every target instead of the Base.

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.

  • Operation mesh.blendshape.move_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.
directionLiteral["up", "down"]"up"Direction (up / down).

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.

  • Operation mesh.blendshape.remove_all_targets
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

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.

  • Operation mesh.blendshape.remove_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.

Rename Target

tb.ops.mesh.blendshape.rename_target(
    *,
    mesh: MeshRef = ...,
    target: str,
    name: str,
) -> Result

Rename a blendshape target.

  • Operation mesh.blendshape.rename_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.
namestrrequiredNew name (made unique).

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.

  • Operation mesh.blendshape.set_envelope
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
nodeObjectRef—The mesh object (default: the active object).
envelopefloatrequired0 is the Base, 1 the full mix. (factor; 0…1).

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.

  • Operation mesh.blendshape.set_offsets
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.
indicesAnyrequiredVertex indices.
offsetsAnyrequiredOne offset per index, flat or as [x, y, z] triples.

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.

  • Operation mesh.blendshape.set_relative_to
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.
relative_tostr""The target it is relative to; empty for the Base.

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.

  • Operation mesh.blendshape.set_weight
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetstrrequiredBlendshape target name.
weightfloatrequired0 is the Base, 1 the full target; values beyond exaggerate or invert it. (factor; -10…10).

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.

  • Operation mesh.boolean
  • In Model
ArgumentTypeDefaultDescription
baseObjectRef—The mesh that keeps the result (default: the first selected object). Union adds the operands to it, Difference cuts them out of it and Intersection keeps only the shared volume.
operandsSequence[ObjectRef]—Mesh objects or groups combined with the Base, in order; for Difference they are the cutters (default: the other selected objects).
operationLiteral["union", "difference", "intersection", "slice", "extract"]"difference"Union combines the solids. Difference subtracts the operands. Intersection keeps their shared volume. Slice splits the Base along the operands, keeping both parts (the overlap as a copy of the Base). Extract keeps the Base whole and adds the overlap as a new copy of it. (union / difference / intersection / slice / extract).
keep_operandsboolFalseKeep the operand objects in the scene instead of removing them.
add_as_modifierboolFalseKeep a live Boolean modifier per operand on the Base in this mode (Union, Difference or Intersect), the operands drawn as wire cutters and still movable, until applied (Apply Cutters); off applies the same modifiers at once.
material_modeLiteral["index", "transfer"]"index"Index uses the Base's material slots for operand faces by slot number. Transfer adds missing operand materials to the result. (index / transfer).

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.

  • Operation mesh.bridge_edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
edge_indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
face_indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
connectLiteral["open", "closed", "pairs"]"open"How three or more loops are joined: in sequence, closing back to the first, or two at a time. (open / closed / pairs).
cutsint0Number of intermediate edge loops inserted across the bridge. (0…100).
interpolationLiteral["linear", "path", "surface"]"path"How the cuts follow the gap: straight, continuing the edge flow at both loops, or leaving each loop along its surface. (linear / path / surface).
smoothnessfloat1.0How strongly blended cuts curve (0 = straight). (0…1000).
profile_factorfloat0.0Bulge the middle cut rings outwards (positive) or pinch them in (negative). (-1000…1000).
profile_shapeLiteral["smooth", "sphere", "root", "sharp", "linear", "inverseSquare"]"smooth"Falloff of the profile from the loops to the middle. (smooth / sphere / root / sharp / linear / inverseSquare).
twistint0Rotate which point of the second closed loop each point connects to. (-1000…1000).
mergeboolFalseWeld the loops together instead of creating faces (equal edge counts).
merge_factorfloat0.5Where merged points land: 0 at the first loop, 1 at the second. (factor; 0…1).

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).

  • Operation mesh.bridge_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).

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.

  • Operation mesh.cast
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
factorfloat1.00 = no change, 1 = perfect sphere. (0…1).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.centre_target
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
meshMeshRefrequiredMesh.
edgeAny—An edge as its two vertex indices [a, b]: its loop's center.
faceint—A face index: the center of the sphere around it.

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.

  • Operation mesh.clear_sharpening
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
scopeLiteral["auto", "mesh", "selection"]"auto"Where sharpening is cleared: the selection, the whole mesh, or automatically the selection when there is one. (auto / mesh / selection).
sharpboolTrueRemove sharp marks.
creaseboolTrueReset subdivision crease to 0.
bevel_weightboolTrueReset bevel weight to 0.
seamboolFalseAlso clear UV seams.

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.

  • Operation mesh.collapse_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
position_ruleLiteral["midpoint", "first", "last"]"midpoint"Where each collapsed edge's new point goes: the middle of the edge or one of its ends. (midpoint / first / last).

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.

  • Operation mesh.collapse_spike_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).
spike_anglefloat5.0Corners sharper than this make a spike face. (degrees; 0…90).

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.

  • Operation mesh.collapse_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
boundary_ruleLiteral["skip", "collapse"]"skip"Vertices on an open boundary: skip them, or collapse them too (the opening is capped). (skip / collapse).

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.

  • Operation mesh.color_attribute.add
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
namestr"Color"Name.
domainLiteral["point", "corner"]"point"Domain (point / corner).
typeLiteral["float_color", "byte_color"]"float_color"Type (float_color / byte_color).
colorColor4[1.0, 1.0, 1.0, 1.0]Color.
valuesAny—One [r, g, b, a] per element of the domain instead of one color (Color type only).

Set Active Color Attribute

tb.ops.mesh.color_attribute.set_active(*, mesh: MeshRef = ..., attribute: str) -> Result

Make a color attribute the one being painted.

  • Operation mesh.color_attribute.set_active
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
attributestrrequiredAttribute.

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.

  • Operation mesh.color_attribute.set_default
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
attributestrrequiredAttribute.

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.

  • Operation mesh.components
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to inspect (default: the one selected mesh).

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.

  • Operation mesh.connect_vertex_pairs
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).

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.

  • Operation mesh.connect_vertex_path
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).

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.

  • Operation mesh.convex_hull
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
join_trianglesboolTrueMerge pairs of hull triangles into quads where they are nearly flat.
face_anglefloat40.0Join Triangles: largest angle between the two triangles. (degrees; 0…180).
shape_anglefloat40.0Join Triangles: largest corner deviation from a right angle in the joined quad (180 turns the test off). (degrees; 0…180).
delete_unusedboolTruePicked hull: delete picked points, edges and faces that end up inside the hull.
use_existing_facesboolTruePicked hull: keep existing faces that lie on the hull instead of covering them.
make_holesboolFalsePicked hull: delete the picked faces the hull runs along, leaving holes.

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.

  • Operation mesh.custom_normals.average
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).

Clear Custom Normals

tb.ops.mesh.custom_normals.clear(*, mesh: MeshRef = ...) -> Result

Remove custom normals; shading follows smooth / sharp again.

  • Operation mesh.custom_normals.clear
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

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.

  • Operation mesh.custom_normals.set_corners
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
cornersSequence[int]—Corner indices (face offset + corner number); default: every corner in order. (0…4294967295).
normalsAnyrequiredOne [x, y, z] per listed corner (or per corner of the mesh), finite and non-zero; stored normalized.

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.

  • Operation mesh.custom_normals.set_from_current
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

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.

  • Operation mesh.data.info
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

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.

  • Operation mesh.data.read
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to read (default: the mesh with a component selection, else the selected mesh object).
attributestr—An attribute's name, as mesh.data.info lists it.
weight_mapstr—A weight map's name.
edge_datastr—crease, bevelWeight, sharp, seam, vertexCrease or vertexBevelWeight.

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.

  • Operation mesh.data_transfer
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
targetsSequence[ObjectRef]—Exact target mesh placements, in order. Destructive copies deduplicate shared resources and refuse conflicting world frames; retained rows belong to each placement.
sourceMeshRef—The mesh resource to copy from. Omit when sourcePlacement supplies it; if both are present, they must agree.
source_placementObjectRef—The exact source object whose evaluated mesh and scene frame are used. Required when its placements are ambiguous.
uvsboolTrueCopies the source's UV maps onto the target mesh.
colorsboolFalsePoint, face and corner color layers.
attributesboolFalseNamed point, face and corner values, including Vertex Sets, integer pairs and Quaternion rotations. Color layers use Colors.
use_object_transformboolTrueMatch scene positions. Off uses mesh-local coordinates; an unplaced or ambiguous resource can be copied locally without selecting a placement.
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.
weight_mapsboolFalseCopies the source's weight maps (skin weights and painted maps) onto the target mesh.
normalsboolFalseCopies the source's custom normals onto the target mesh, so the shading matches.
positionsboolFalseMoves each point to the source's position at the same UV (UV mapping), for meshes sharing a UV layout such as LODs or retopologised copies.
mappingLiteral["nearestSurface", "topology", "uv"]"nearestSurface"Face values follow the nearest source face center without interpolation. UV moves positions only: each point takes the source's surface at its UV. (nearestSurface / topology / uv).
max_uv_distancefloat0.05UV mapping: a UV farther than this from every source triangle keeps its point where it is. (0…10).
stagedstr—Completed portable Data Transfer result capability; pending or expired results refuse before publication.

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.

  • Operation mesh.debug_dump
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to inspect (default: the one selected mesh).

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.

  • Operation mesh.decimate
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
add_as_modifierboolFalseAdd an editable modifier to each mesh instead of changing its geometry.
modeLiteral["collapse", "unsubdivide", "planar"]"collapse"Collapse merges edges by least shape error. Un-Subdivide reverses grid subdivision. Planar merges nearly flat neighbouring faces. (collapse / unsubdivide / planar).
ratiofloat0.5Fraction of triangles to keep. 1 keeps the mesh unchanged. (factor; 0…1).
iterationsint1Number of subdivision levels to reverse. (0…32767).
angle_limitfloat5.0Neighbouring faces closer to flat than this merge; straight-line points dissolve. (degrees; 0…180).
use_symmetryboolFalseDecimate both halves identically about the chosen local axis.
symmetry_axisLiteral["x", "y", "z"]"x"Local axis the two halves mirror across. (x / y / z).
triangulateboolFalseKeep the triangulated result instead of rejoining untouched polygons.
vertex_setstr""Points outside this Vertex Set stay locked; its members collapse first (empty: none). Paint the Decimate modifier's weight map for graded control.
invert_vertex_setboolFalseLock the Vertex Set's members instead.
weight_factorfloat1.0How strongly the Vertex Set protects points. (0…1000).
all_boundariesboolFalseDissolve every two-edge boundary point regardless of angle.
delimit_normalboolFalsePlanar: keep the edges where this property changes.
delimit_materialboolFalsePlanar: keep the edges where this property changes.
delimit_seamboolFalsePlanar: keep the edges where this property changes.
delimit_sharpboolFalsePlanar: keep the edges where this property changes.
delimit_uvboolFalsePlanar: keep the edges where this property changes.

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.

  • Operation mesh.delete_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
modeLiteral["edges", "edgesAndFaces"]"edges"With Unused Points also removes the points no other edge uses; Keep Points leaves them. (edges / edgesAndFaces).

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.

  • Operation mesh.delete_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
modeLiteral["faces", "onlyFaces", "keepBoundary"]"faces"With Unused Edges also removes edges and points only these faces used; Keep Edges leaves every edge; Keep Border Edges leaves the hole's rim. (faces / onlyFaces / keepBoundary).

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.

  • Operation mesh.delete_loose
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
verticesboolTrueRemove points that no edge or face uses.
edgesboolTrueRemove standalone wire edges that belong to no face.
facesboolFalseRemove faces that share no edge with any other face.

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.

  • Operation mesh.delete_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).

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.

  • Operation mesh.detect_sharp_angle
  • Works on selected mesh objects (exactly 1)
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh to measure (default: the selected mesh object).

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.

  • Operation mesh.detect_symmetry
  • Works on selected mesh objects (exactly 1)
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh to measure (default: the selected mesh object).

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.

  • Operation mesh.dissolve_degenerate
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
distancefloat0.0001Maximum distance: shorter edges collapse. (scene units; 0.000001…50).

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).

  • Operation mesh.dissolve_dispensable_vertices
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices to fix on one mesh (default: every vertex the check finds). (0…4294967295).
angle_thresholdfloat5.0133807073947025Maximum deviation from a straight edge for removing a redundant point. (degrees; 0…90).

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.

  • Operation mesh.dissolve_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
use_vertsboolFalseAlso dissolve the edge vertices left with only two edges.
face_splitboolFalseSplit off face corners around those vertices to keep surrounding faces.
angle_thresholdfloat180.0With Dissolve Vertices: keep a two-edge vertex whose edges bend more than this many degrees; 180 dissolves all. (degrees; 0…180).
preserve_quadsboolFalseWith Dissolve Vertices: keep the corners of an edge between two triangles so the pair becomes a quad.

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.

  • Operation mesh.dissolve_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
use_vertsboolFalseAlso dissolve border vertices left with only two edges.

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.

  • Operation mesh.dissolve_limited
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
angle_thresholdfloat5.0Maximum face-angle difference for dissolving edges, in degrees. (degrees; 0…180).
use_boundariesboolFalseDissolve every two-edge vertex, including those on open boundaries.
protect_sharpboolFalsePreserve edges marked sharp.
protect_seamboolFalsePreserve edges marked as UV seams.
protect_uvboolFalsePreserve discontinuities in UV coordinates.
protect_materialsboolFalsePreserve boundaries between different face materials.
protect_normalsboolTruePreserve edges between faces that face opposite ways (on by default).

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.

  • Operation mesh.dissolve_low_valence
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
min_edgesLiteral["3", "4"]"3"3 removes two-edge doublets; 4 also removes three-edge poles. (3 / 4).
protect_anglefloat30.0With 4: keep a pole where the surface bends more than this. Sharp and seam marks are always kept. (degrees; 0…180).

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.

  • Operation mesh.dissolve_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
face_splitboolFalseSplit off face corners first so the surrounding faces keep their shape.
tear_boundaryboolFalseTear vertices on an open boundary out of their faces instead of merging them.

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.

  • Operation mesh.draw_cutter
  • Works on selected mesh objects
  • In Model
ArgumentTypeDefaultDescription
targetObjectRef—The mesh object the cutter acts on (default: the first selected object).
pointsAny—The closed outline in world space, as [[x, y, z], …] (3 or more points on one plane, on the target's surface).
normalVec3Like—The outward normal of the surface the outline lies on (default: the outline's own normal).
modeLiteral["cut", "union", "intersect", "slice", "inset", "knife", "auto"]"cut"What the drawn shape does: cut a hole, add material, keep only the overlap, split the mesh, inset a ledge, or cut edges only (Knife). (cut / union / intersect / slice / inset / knife / auto).
depthfloat0.1How far the cutter reaches into the surface (Union: out of it). Inset: the panel depth; negative raises the panel. (scene units; -1000000…1000000).
liveboolTrueKeep the cutter as an editable wire object driving a live Boolean, until Apply Cutters.
cutterObjectRef—Custom shape: this mesh object is the cutter instead of a drawn outline (no points or depth).
bevel_widthfloat0.0Round the rim the cut leaves on the target (0: a sharp rim). (scene units; 0…1000000).
bevel_segmentsint2Segments across the rim bevel. (1…16).
mirror_xboolFalseRepeat the cutter mirrored across the target's X plane.
mirror_yboolFalseRepeat the cutter mirrored across the target's Y plane.
mirror_zboolFalseRepeat the cutter mirrored across the target's Z plane.
array_modeLiteral["none", "linear", "radial"]"none"Repeat the cutter in a row along a target axis, or turned around it through the target's origin. (none / linear / radial).
array_countint3Copies in the array, the cutter itself included. (count; 1…64).
array_axisLiteral["x", "y", "z"]"x"The target's axis the array steps along (Linear) or turns around (Radial). (x / y / z).
array_spacingfloat0.5Linear: the step between copies. (scene units; -1000000…1000000).

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.

  • Operation mesh.draw_face
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Existing editable target mesh placement; omit to create one.
cornersAnyrequiredThree or four ordered {ray:{origin:[3],direction:[3]}}, {point:[x,y,z]} (closest surface), or {vertex:stableId} corners.
source_versionstr—Version from retopology.project; refuses a source changed during placement.
modeLiteral["tri", "quad", "mixed"]"mixed"Mode (tri / quad / mixed).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
backfacesboolFalseAllow placement on source faces pointing away from the camera.
eyeVec3Like—World-space camera position; required when snapping to backfaces is off. (scene units).
namestr"Retopology"Name.

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.

  • Operation mesh.draw_loop
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
startVec3LikerequiredFirst click in world space (surface hit or camera-plane point). (scene units).
endVec3LikerequiredSecond click in world space. (scene units).
eyeVec3LikerequiredCamera position; the slice plane contains both points and the eye. (scene units).
segmentsint8Quads around the ring. (3…64).
widthfloatrequiredHalf the spacing between rings along the slice normal in world metres. (scene units; 0.000001…1000000).
ringsint1Rows of quads: a new band holds this many rings; extending a loop fills the gap with this many. 0 (Auto): one ring for a new band; a bridge fills its gap with quads about as long as the loop's quads are wide. (0…32).
connectboolTrueBridge to the nearest selected open loop of the Edit Mesh (RetopoFlow Contours), keeping its segment count.
source_versionstr—Source Version.
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
namestr"Retopology"Name.

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.

  • Operation mesh.draw_strip
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
strokeAny—Ordered [x,y] screen samples in the view's pixel units.
viewAny—{viewProjection:[16 column-major values],size:[width,height],eye:[x,y,z,w]}; w=1 perspective position, w=0 orthographic direction toward camera.
radiusfloat40.0Strip half-width in screen pixels; Auto spacing follows the same radius. (8…200).
lagfloat0.85IIR smoothing of raw pointer samples; pass zero for samples already smoothed by the tool. (0…0.99).
segmentsint—Pinned quad count; omit for Auto. Closed strips require at least three valid quads. (1…32).
cyclicbool—Close the strip using the first row's same vertex IDs; omit for radius-based stroke closure detection.
start_edgeint—Stable boundary edge ID reused by the first row. (0…4294967295).
start_faceint—Stable Edit Mesh face ID: start inside it and attach to its first crossed open boundary edge. Cannot combine with startEdge, chainEdges or a device request. (0…4294967295).
end_edgeint—Stable disjoint boundary edge ID reused by the last row. (0…4294967295).
start_vertexint—Stable degree-one boundary profile anchor. One anchor makes L; with endVertex makes a U bridge. Sampling aligns to this anchor. (0…4294967295).
end_vertexint—Second U profile anchor, or the single anchor of a reversed L stroke. Endpoint rows reuse existing vertices. (0…4294967295).
chain_edgesAny—Stable boundary edge restriction. Without vertex anchors, at least two edges extrude a loft: gaps between selected edges on one boundary loop are bridged along that boundary (the longest gap stays open); with startVertex/endVertex, each anchor walks its own L/U profile. Auto spacing only.
separate_stripsboolFalseLoft: leave the bridged gaps open so each selected run of edges gets its own strip from the same stroke.
source_versionstr—Source Version.
requeststr—The current internally completed device stroke; raw stroke/view parameters are omitted.
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
backfacesboolFalseAllow placement on source faces pointing away from the camera.
namestr"Retopology"Name.

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.

  • Operation mesh.draw_stroke
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
pointsAnyrequiredThe stroke as [[x,y,z], …] world points on the reference.
verticesSequence[int]—Stable vertex ids of the selected edges; omit to use the selection. (0…4294967295).
spansint0Segments across the stroke; 0 matches the edge spacing. (0…64).
shapeLiteral["strip", "cycle", "ring", "equals", "l", "u", "c", "t", "i", "o", "d", "close"]—The reading to lay when the stroke has several (see alternatives from retopology.stroke_plan); omit for the first. (strip / cycle / ring / equals / l / u / c / t / i / o / d / close).
match_countsboolFalseSplit edges on the shorter existing side when the counts do not pair up (Match counts).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).

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.

  • Operation mesh.draw_vertex
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
rayAnyrequiredRay.
source_versionstr—Source Version.
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
backfacesboolFalseAllow placement on source faces pointing away from the camera.
snap_radiusfloat0.0Snap a hit to the nearest reference vertex within this world radius (Quad Draw X); zero keeps the surface point. (scene units; 0…1000000).
namestr"Retopology"Name.

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.

  • Operation mesh.duplicate_selection
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
mesh_idMeshRef—Compatibility alias for mesh; component lists target exactly one mesh.
face_indicesSequence[int]—Copy exactly these faces. (0…4294967295).
vertex_indicesSequence[int]—Copy the faces whose every corner is listed. (0…4294967295).
edge_indicesSequence[int]—Copy the faces whose every edge is listed. (0…4294967295).

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).

  • Operation mesh.edge_data.clear
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
dataLiteral["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"]"crease"Which data to clear: edge crease, edge bevel weight, sharp, seam, or vertex crease or bevel weight. (crease / bevelWeight / sharp / seam / vertexCrease / vertexBevelWeight).
scopeLiteral["selection", "all"]"all"Clears the data on the selected components only, or on the whole mesh. (selection / all).

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.

  • Operation mesh.edge_data.select
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
dataLiteral["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"]"crease"Data (crease / bevelWeight / sharp / seam / vertexCrease / vertexBevelWeight).

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).

  • Operation mesh.edge_data.set
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
dataLiteral["crease", "bevelWeight", "sharp", "seam", "vertexCrease", "vertexBevelWeight"]"crease"Which data to set: edge crease, edge bevel weight, sharp, seam, or vertex crease or bevel weight. (crease / bevelWeight / sharp / seam / vertexCrease / vertexBevelWeight).
valuefloat1.0The amount given to the edges, from 0 (none) to 1 (full); higher creases keep subdivided edges sharper. (factor; 0…1).
scopeLiteral["selection", "all"]"selection"Sets the data on the selected components only, or on the whole mesh. (selection / all).

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).

  • Operation mesh.edge_flow
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit edges.
mesh_idMeshRef—Compatibility alias of mesh.
edgesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
edge_indicesSequence[int]—Compatibility alias of edges. (0…4294967295).
modeLiteral["flow", "linear", "curve"]"flow"How the edges move: Flow follows the curvature of the surrounding loops, Linear straightens them, Curve bends them along a smooth arc. (flow / linear / curve).
mixfloat1.00 = original positions, 1 = full result. (0…1).
tensionint180Flow: curve tightness in percent. (-500…500).
iterationsint16Flow: passes. (1…100).
min_anglefloat0.0Flow: a transverse control bending back sharper than this is replaced. (degrees; 0…180).
blend_modeLiteral["count", "factor"]"count"Flow: end blend ranges as vertex counts or chain fractions. (count / factor).
blend_start_countint0Flow: vertices at the chain start blended back to their original positions. (0…9007199254740991).
blend_end_countint0Flow: vertices at the chain end blended back. (0…9007199254740991).
blend_start_factorfloat0.0Flow: fraction of the chain's vertex count at its start, rounded with ties to even. (0…1).
blend_end_factorfloat0.0Flow: fraction of the chain's vertex count at its end, rounded with ties to even. (0…1).
blend_curveLiteral["linear", "smooth"]"linear"How the flow fades towards the ends of the edge run: evenly or with a smooth falloff. (linear / smooth).
curve_tensionint100Curve: handle length as a percentage of half the chord. (-500…500).
end_tangentsLiteral["surface", "selection"]"surface"Curve: tangents from the loop beyond the chain ends, or the end edges. (surface / selection).
space_evenlyboolFalseLinear / Curve: spread the interior vertices evenly.
use_railboolFalseCurve: keep straight end rails; requires at least three edges.
rail_modeLiteral["factor", "distance"]"factor"Curve: locate rails by end-edge fraction or length. (factor / distance).
rail_start_factorfloat1.0Curve: fraction along the first end edge (1 = its far end). (0…2).
rail_end_factorfloat1.0Curve: fraction along the last end edge. (0…2).
rail_start_distancefloat0.1Curve: object-local distance from the first endpoint, in metres. (scene units; 0…340282346638528860000000000000000000000).
rail_end_distancefloat0.1Curve: object-local distance from the last endpoint, in metres. (scene units; 0…340282346638528860000000000000000000000).

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).

  • Operation mesh.edge_rotate
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
directionLiteral["cw", "ccw"]"cw"The direction each selected edge turns to its next position. (cw / ccw).

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.

  • Operation mesh.edge_split
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
mesh_idMeshRef—Compatibility alias for mesh; explicit component lists target exactly one mesh.
edge_indicesSequence[int]—Split along exactly these edges; angle and sharp marks are ignored. (0…4294967295).
vertex_indicesSequence[int]—Give every face corner and loose edge at exactly these points its own copy. (0…4294967295).
angle_threshold_degfloat30.0Split edges whose faces meet at this angle or more (no edge selection). (degrees; 0…180).
use_sharp_edgesboolFalseAlso separate faces along edges marked sharp.
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.extend_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
factorfloat0.0Where each new point starts along its edge (0: on the selected point, ready to move). (0…1).
directionVec3Like—Mesh-space direction: each point extends along its edge closest to it.

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.

  • Operation mesh.extrude_arc
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
anglefloat90.0Bend of the arc (0: a straight bridge). (degrees; 0…180).
segmentsint8Sections along the arc. (2…64).
amountfloat0.0Distance to push each face out along its normal before the arc begins. (scene units).

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.

  • Operation mesh.extrude_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
distancefloat—Extrusion distance along the adjacent face normals (or the axis). (scene units).
direction_modeLiteral["normal", "x", "y", "z"]"normal"The direction the new edges move: along the surface normal or along the world X, Y or Z axis. (normal / x / y / z).

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.

  • Operation mesh.extrude_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
distancefloat—Extrusion distance. Omit for one quarter of the shortest selected edge. (scene units).
direction_modeLiteral["normal", "average", "x", "y", "z"]"normal"'normal': each vertex along its adjacent faces' normals with even thickness; 'average': the region along one averaged normal; 'x'/'y'/'z': along that world axis (region only). (normal / average / x / y / z).
individual_facesboolFalseExtrude every face separately along its own normal.
keep_originalboolFalseKeep the original faces underneath the extruded faces (closing the shape).
manifoldboolFalseMerge side walls into neighbouring faces perpendicular to the extrusion (region only).

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.

  • Operation mesh.extrude_individual_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
distancefloat0.001Distance to extrude each face (magnitude at least 0.001). (scene units).

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.

  • Operation mesh.extrude_move
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit indices (default: every mesh with a selection).
indicesSequence[int]—Dense face or edge indices of one mesh (default: the selection of the current mode). (0…4294967295).
offsetVec3Like[0.0, 0.0, 0.0]How far the extruded geometry moves (world). (scene units).

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.

  • Operation mesh.extrude_to_point
  • In Model
ArgumentTypeDefaultDescription
pointVec3LikerequiredWhere the selection's center goes, in world space. The viewport gesture uses the click on the view plane through the selection center. (scene units).
modeLiteral["vertex", "edge", "face"]—Which components to extrude (default: the current component mode). (vertex / edge / face).
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense indices of one mesh's components of mode (default: the selection). (0…4294967295).
view_directionVec3Like—The world direction looking into the screen the point was picked in. Given, the extruded edges or faces turn about it to face the point; omitted, they move straight.
rotate_sourceboolFalseAlso turn the source half way towards the point. Needs viewDirection.

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).

  • Operation mesh.extrude_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
distancefloat—How far the new points move along the point normal. Omit for a quarter of the selected feature size. (scene units).

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.

  • Operation mesh.fill_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).

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.

  • Operation mesh.fill_hole_advanced
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
holeint1Which hole to fill, from 1; 0 fills every hole. A hole number needs one target mesh. (0…1000000).
methodLiteral["smooth", "grid", "fan"]"smooth"Smooth: refined, evenly sized triangles. Grid: a quad grid (even border only). Fan: triangles round a center point. (smooth / grid / fan).
refineboolTrueAdd interior points so no new edge is longer than Max Edge.
max_edge_lengthfloat0.0Longest new edge; 0 uses the hole's mean border edge length. (scene units; 0…10).
smoothboolFalseRelax the new interior points into an even, taut patch.
smooth_iterationsint3Smoothing passes. (1…10).

Fill Hole (Basic)

tb.ops.mesh.fill_hole_basic(
    *,
    meshes: Sequence[MeshRef] = ...,
    max_sides: int = 0,
) -> Result

Fill holes with single n-gon faces.

  • Operation mesh.fill_hole_basic
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
max_sidesint0Maximum number of boundary edges in holes to fill. Zero removes the limit. (0…1000000000).

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.

  • Operation mesh.fill_hole_patch
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to patch (default: the selected mesh).
pointsAny—New interior points [[x, y, z], …] in mesh space.
facesAny[]Faces [[corner, …], …]: point indices, or -1 - k for new point k.

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.

  • Operation mesh.fill_patch
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—Target.
vertexint—A stable vertex on the hole's boundary; omit to fill the selected boundary loop. (0…4294967295).
verticesSequence[int]—Stable vertex ids of the boundary loop; omit to use the selection. (0…4294967295).
rowsint0Quads across the patch; 0 puts the corners where the boundary turns most. (0…256).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).

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.

  • Operation mesh.fit_circle
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
planeLiteral["auto", "xy", "xz", "yz"]"auto"Plane of the circle. (auto / xy / xz / yz).
radiusfloat0.0Fixed radius (0: fit it). (scene units; 0…1000000000).
centerVec3Like—Fixed center in the fitting space (default: fit it). (scene units).
even_spacingboolFalseSpace the points at equal angles.
spaceLiteral["world", "object"]"world"Fit in world space (round on screen) or the mesh's own space. (world / object).

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.

  • Operation mesh.flatten
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected edges. (volume / surface).
factorfloat1.0Blend toward the plane: 0 = no change, 1 = fully flat. (0…1).
planeLiteral["auto", "x", "y", "z"]"auto"Plane to flatten onto: auto = best fit, or a world-axis plane. (auto / x / y / z).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.flatten_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit faces.
facesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
planeLiteral["auto", "x", "y", "z"]"auto"Plane to flatten onto: auto = best fit, or a world-axis plane. (auto / x / y / z).

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.

  • Operation mesh.flatten_to_plane
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected edges. (volume / surface).
axisLiteral["x", "y", "z"]"y"Axis perpendicular to the plane. (x / y / z).
valuefloat—Plane coordinate along the axis (default: the selection's center). (scene units).
factorfloat1.0Blend toward the plane: 0 = no change, 1 = on the plane. (0…1).
plane_originVec3Like—A point on an arbitrary plane (object space); with planeNormal it replaces axis / value. (scene units).
plane_normalVec3Like—Normal of an arbitrary plane (object space).

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.

  • Operation mesh.grid_fill
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
spanint0Loop edges on each of the two grid sides; 0 uses a quarter of the loop. (0…1000000).
offsetint0Rotate which boundary vertices act as the four grid corners. (-1000000…1000000).
strategyLiteral["grid", "simple"]"grid"How the hole is filled: a grid of quads, or a simple fan of triangles from the center. (grid / simple).
interpolationLiteral["coons", "simple", "blend"]"coons"Grid interior placement. (coons / simple / blend).

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.

  • Operation mesh.hide
  • In Model
ArgumentTypeDefaultDescription
actionLiteral["selected", "unselected", "reveal"]"selected"What to do: hide the selection, hide everything except the selection, or reveal what is hidden. (selected / unselected / reveal).
selectboolTrueReveal: select 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.

  • Operation mesh.insert_edge_loop
  • In Model
ArgumentTypeDefaultDescription
smoothnessfloat0.0Bow the new loops along the surface curvature: 0 = flat cut, 1 = round, negative pinches in. (-4…4).
falloffLiteral["inverseSquare", "smooth", "sphere", "root", "sharp", "linear"]"inverseSquare"How Smoothness fades toward the ring edge ends. (inverseSquare / smooth / sphere / root / sharp / linear).
through_ngonsboolFalseForce Edge Loop: keep the loop going through triangles, n-gons and past poles (leaving each face by its most parallel edge).
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
edge_indexint—A single seed edge. (0…4294967295).
edge_indicesSequence[int]—Seed edges: one loop is inserted across the ring through each (edges on one ring share a loop). (0…4294967295).
face_indicesSequence[int]—Seed faces: loops run along the selected face loops (across edges shared by two selected faces). (0…4294967295).
cutsint1Parallel loops inserted per ring. (1…128).
positionfloat0.5Single loop: where along each ring edge the loop runs. (factor; 0…1).

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.

  • Operation mesh.inset_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
thicknessfloat—Inset width measured from each side. Omit for an adaptive default. (scene units; 0…1000000).
depthfloat0.0Pushes the inset faces along their normals: positive moves inward, negative outward. (scene units).
individualbool—Inset every face on its own (default off: region inset, unless amount is given).
amountfloat—Individual inset by fraction: how far each face shrinks toward its center (0 keeps the face, 1 collapses it). (factor; 0…1000000).
offset_evenboolTrueKeep the border the same width at sharp corners.
offset_relativeboolFalseScale the width by the length of the surrounding edges.
edge_railboolFalseRegion: slide the border along existing edges where it meets them.
boundaryboolTrueRegion: also inset open mesh edges along the selection border.
outsetboolFalseRegion: grow the border outward into the surrounding faces instead of inward.
interpolateboolTrueBlend UVs and vertex data across the new border so textures stay in place.
select_outerboolFalseAfterwards select the new border faces instead of the inset 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.

  • Operation mesh.inspect
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to inspect (default: meshes with a component selection, else the selected mesh objects).
checksAny—Check ids to run, e.g. ["selfIntersections"] (default: all).
include_indicesboolTrueReport the element indices of every finding (counts only when off).
merge_distancefloat0.0001Points closer than this are duplicates. (scene units; 0…1000000).
degenerate_distancefloat0.0001Edges shorter than this are degenerate. (scene units; 0…1000000).
area_tolerancefloat5e-13Faces with less area (square metres) are degenerate. (0…1000000000000).
dispensable_anglefloat5.0Maximum bend of a redundant point between two edges. (degrees; 0…90).
spike_anglefloat5.0Corners sharper than this make a spike face. (degrees; 0…90).
non_planar_anglefloat5.0Corners further out of plane than this make a face non-planar. (degrees; 0…90).
t_vertex_distancefloat0.0001A point closer than this to an edge it is not part of is a T-vertex. (scene units; 0…1000000).

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.

  • Operation mesh.intersect_ray_triangle
  • In Model
ArgumentTypeDefaultDescription
ray_originVec3LikerequiredRay start.
ray_dirVec3LikerequiredRay direction (any length; t is in multiples of it).
v0Vec3LikerequiredFirst triangle corner.
v1Vec3LikerequiredSecond triangle corner.
v2Vec3LikerequiredThird triangle corner.

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.

  • Operation mesh.is_point_inside
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to inspect (default: the one selected mesh).
pointVec3LikerequiredPoint in the mesh's own space.

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.

  • Operation mesh.knife
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to cut (default: the one selected mesh).
cutsAnyrequiredOne cut as a list of [x, y, z] world points (at least 2), or a list of such cuts.
view_originVec3Like—Eye point of a perspective view (world). (scene units).
view_directionVec3Like—Viewing direction of an orthographic view (world).
cut_throughboolFalseAlso cut faces hidden behind the visible surface.

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.

  • Operation mesh.knife_project
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to cut (default: the mesh in component mode, else the last selected mesh object).
cuttersSequence[ObjectRef]—Curve and mesh objects whose outline is cut in (default: the other selected objects).
projectionLiteral["view", "x", "y", "z"]"view"Project along the viewport camera, or straight along a world axis. (view / x / y / z).
view_directionVec3Like—World direction the camera looks along (View projection; the editor fills it in).
reverseboolFalseLook from the negative side of the axis instead of the positive side.
cut_throughboolFalseAlso cut the faces hidden behind the visible surface.
select_insideboolTrueIn Face mode, select the faces inside closed outlines afterwards.

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).

  • Operation mesh.loop_cut_edge
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
smoothnessfloat0.0Bow the new loops along the surface curvature: 0 = flat cut, 1 = round, negative pinches in. (-4…4).
falloffLiteral["inverseSquare", "smooth", "sphere", "root", "sharp", "linear"]"inverseSquare"How Smoothness fades toward the ring edge ends. (inverseSquare / smooth / sphere / root / sharp / linear).
through_ngonsboolFalseForce Edge Loop: keep the loop going through triangles, n-gons and past poles (leaving each face by its most parallel edge).
countint1Number of parallel loops to insert. (1…128).
cutsint—Alias of count. (1…128).
positionfloat0.5Single loop: where along each ring edge the loop runs. (factor; 0…1).
slidefloat0.0Slide the new loops along their rails (Loop Cut and Slide); positive moves toward the second vertex of the first edge in indices. (-1…1).
evenboolFalseWith slide: move every vertex the same distance.
flipboolFalseWith slide and even: measure from the far end of each rail.

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.

  • Operation mesh.make_cutter
  • In Model
ArgumentTypeDefaultDescription
baseObjectRef—The object the cutters cut (default: the first selected object).
cuttersSequence[ObjectRef]—Mesh objects or groups that become cutters (default: the other selected objects).
operationLiteral["union", "difference", "intersection", "slice", "extract"]"difference"Difference cuts the cutters out, Union adds them, Intersection keeps the overlap, Slice keeps both parts (the overlap on a live copy) and Extract leaves the target whole with the overlap on a live copy. (union / difference / intersection / slice / extract).
material_modeLiteral["index", "transfer"]"index"Index uses the target's material slots for cutter faces by slot number. Transfer adds missing cutter materials to the result. (index / transfer).

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.

  • Operation mesh.make_edge_face
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
vertex_indicesSequence[int]—Points: two make an edge, three or more make one face. (0…4294967295).
edge_indicesSequence[int]—Edges whose outline becomes one face (an open chain is closed). (0…4294967295).

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.

  • Operation mesh.make_planar
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit faces.
facesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
factorfloat1.0Projection blend: 1 = full snap onto each face's plane. (0…1).
iterationsint1Project-and-recompute passes. (1…10000).

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.

  • Operation mesh.merge_by_distance
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
distancefloat0.01Maximum separation between vertices that can be merged. (scene units; 0…1000000).
connected_onlyboolFalseOnly merge points joined by an edge or face, so separate pieces that merely touch stay apart.
sharp_edgesboolFalseMark edges sharp where the welded corners' custom normals differ, so hard edges stay hard without custom normals.
whole_meshboolFalseMerge over the whole mesh even when there is a component selection (Cleanup & Repair).
vertex_indicesSequence[int]—Merge only these vertices of one mesh (default: the component selection). (0…4294967295).

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.

  • Operation mesh.merge_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).

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.

  • Operation mesh.merge_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
atLiteral["center", "first", "last", "collapse", "position"]"center"Where the merged point goes: the center of the selection, the first or last selected vertex, a typed position, or Collapse to merge each connected group at its own center. (center / first / last / collapse / position).
positionVec3Like—With at: 'position' — the merge point in the mesh's own space. (scene units).

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).

  • Operation mesh.mirror
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
styleLiteral["topology", "positions"]"topology"Choose between creating mirrored geometry and matching positions across the symmetry plane. (topology / positions).
axisLiteral["x", "y", "z"]"x"Axis perpendicular to the mirror plane. (x / y / z).
modeLiteral["mirror", "symmetrize"]"mirror"Positions: Mirror copies one side onto the other; Symmetrize averages both sides. (mirror / symmetrize).
directionLiteral["positive", "negative"]"positive"Choose which side provides the positions copied to the opposite side. (positive / negative).
thresholdfloat—Topology: points this close to the mirror plane snap onto it and merge with their mirrored copy, closing the seam. Default: derived from the mesh size. (scene units; 0…1000000).
mid_edgeint—Positions: dense index of an edge on the center line where the halves meet (default: the polygon edge nearest the plane; one mesh only). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.mirror_components
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
axisLiteral["x", "y", "z"]"x"Axis perpendicular to the mirror plane. (x / y / z).
pivotLiteral["boundingBox", "object", "world"]"boundingBox"Bounds mirrors across one side of the object's bounds (the copy lands beside it), Object across the object's own center, World across the world origin. (boundingBox / object / world).
directionLiteral["positive", "negative"]"positive"Which side of the bounds the mirror plane sits on. (positive / negative).
mergeboolTrueMerge the copied points that land on their originals (the points on the mirror plane), joining the halves.
thresholdfloat0.001How close a copied point must land to its original to merge. (scene units; 0…1000000).

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.

  • Operation mesh.noise
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
amountfloat—Largest offset (default: a tenth of the smallest affected surface feature). (scene units; 0…1000000).
uniformfloat0.00 gives random distances up to Amount; 1 moves every vertex exactly Amount. (0…1).
normalfloat0.00 moves in any direction; 1 moves only along each vertex normal (in or out). (0…1).
seedint0Random seed; the same seed repeats the pattern. (0…1000000).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.normal_push
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected edges. (volume / surface).
distancefloat0.0Positive moves outward, negative inward. (scene units; -5…5).
even_thicknessboolFalseKeep the shell an even thickness: sharper corners move further so every face moves the full distance (a 90° fold moves distance × √2).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.offset_edge_loops
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
distancefloat0.08How far along each neighbouring edge the new loops sit. (scene units; 0.001…1000).
evenboolTrueEvery new point sits Distance along its edge; off: every point sits Factor of its own edge.
factorfloat0.5How far along each neighbouring edge the new loops sit, as a fraction of the edge. (0.01…0.99).
cap_endpointboolFalseJoin the two new loops round the open ends of a selected chain.
single_sideboolFalseAdd one new loop, on one side of the selected edges, instead of one on each side.
flipboolFalseMeasure Distance from the far end of each edge, so the loops follow the neighbouring loops. With Single Side: the other side.

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.

  • Operation mesh.poke_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
center_modeLiteral["median", "medianWeighted", "bounds"]"median"Where each face's new center point goes: the average of its corners, an area-weighted average, or the middle of its bounds. (median / medianWeighted / bounds).
offsetfloat0.0Distance to move each center along its face normal; negative pushes inward. (scene units; -1000…1000).
relative_offsetboolFalseScale the offset by each face's average center-to-corner distance.

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.

  • Operation mesh.poly_pen
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—The Edit Mesh; omit to use Quad Draw's or create one.
rayAnyrequiredCamera ray {origin:[3],direction:[3]} through the cursor.
modeLiteral["triQuad", "quadOnly", "triOnly", "edgeOnly"]"triQuad"Insert Mode (triQuad / quadOnly / triOnly / edgeOnly).
verticesSequence[int]—Selected stable vertex IDs; omit to use the Edit Mesh's selection. (0…4294967295).
merge_radiusfloat0.0A new vertex this close (world) to an existing one merges into it (Quad Draw: 10 px). (scene units; 0…1000000).
insert_radiusfloat0.0An edge this close (world) is under the cursor: split, bridged or inserted into (Quad Draw: 15 px). (scene units; 0…1000000).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
backfacesboolFalseAllow placement on source faces pointing away from the camera.
source_versionstr—Source Version.
namestr"Retopology"Name.

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.

  • Operation mesh.print_split
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Exact mesh placements to split (default: selected mesh objects). An optional Mesh must agree with every object.
stagedstr—Private completed-result token; omit for synchronous API execution.
meshMeshRef—Mesh to split (default: the selected mesh object).
cut_modeLiteral["axis", "grid", "plane", "freehand", "surfaceLoop", "edgeLoop"]"axis"Evenly spaced cuts along one axis, as many cuts as the bed needs on every axis, one plane, a line drawn across the model (cut straight through along the view), a loop of points clicked around the model, or the selected edge loop. (axis / grid / plane / freehand / surfaceLoop / edgeLoop).
axisLiteral["x", "y", "z"]"y"The axis the cuts run across. (x / y / z).
cut_countint1How many evenly spaced cuts split the model into parts. (1…32).
cut_positionfloat0.5Where a single cut sits across the object (0.5 = the middle). (factor; 0.01…0.99).
plane_originVec3Like[0.0, 0.0, 0.0]A point the cutting plane passes through. (scene units).
plane_normalVec3Like[0.0, 1.0, 0.0]The direction the cutting plane faces.
planesAny—Additional cut planes after the chosen mode: at most 64 {origin:[x,y,z],normal:[x,y,z]} entries in world metres.
strokeAny—Draw: drag a line across the model in the viewport; the cut goes straight through along the view (world points).
stroke_directionVec3Like[0.0, 0.0, -1.0]The view direction the line was drawn along (set by Draw).
loop_pointsAny—Draw: click at least three points around the model's surface, in order (world points).
loop_edgesAny—Edge indices of one closed loop (default: the selected edges; Alt+click selects a loop in Edge mode).
bed_widthfloat0.22Build volume along the scene X axis. (scene units; 0.01…10).
bed_depthfloat0.22Build volume along the scene Z axis. (scene units; 0.01…10).
bed_heightfloat0.25Build volume along the scene Y (up) axis. (scene units; 0.01…10).
bed_marginfloat0.005Space kept free around a part on the bed. (scene units; 0…1).
allow_rotationboolTrueA part may be laid on any side to fit the bed.
check_bedboolTrueCheck every part against the printer bed; turning this off does not change the cuts.
connectorLiteral["peg", "dowel", "key", "dovetail", "magnet", "none"]"peg"Peg: a pin on the lower part and a socket in the upper one. Dowel / Key: round / square holes in both and a separate pin to print. Dovetail: a locking rail across the cut. Magnet: facing pockets for disc magnets. (peg / dowel / key / dovetail / magnet / none).
connector_profileLiteral["round", "square", "hex"]"round"Cross-section of pegs, dowels and keys; square or hex stops parts turning (a key is never round). (round / square / hex).
flipboolFalsePut the peg or dovetail rail on the other part.
connector_rotationfloat0.0Turn square, hex and dovetail connectors on the cut face. (degrees; -180…180).
connector_pointsAny—Place: click near a cut face to put a connector there, click one to remove it, Shift+click to move its peg or rail to the other part (world points; each uses the nearest nearby face containing both mating caps). Distant or off-face points stay red and are skipped. Empty: automatic layout.
connector_flipsAny—Per manual connector: true puts its peg or rail on the other part.
taperfloat-8.0Peg taper: negative narrows the tip so it slides in. (degrees; -30…30).
magnet_diameterfloat0.006Disc magnet diameter. (scene units; 0.0005…0.2).
magnet_thicknessfloat0.002Disc magnet thickness (each part gets a pocket this deep). (scene units; 0.0002…0.2).
magnet_fitfloat0.0001Extra room around the magnet. (scene units; 0…0.005).
dovetail_anglefloat15.0How much the rail flares (locks). (degrees; 0…35).
connector_sizefloat0.01Connector diameter. (scene units; 0.0005…1).
connector_lengthfloat0.01How far a peg reaches into its socket, or the dowel pin's length. (scene units; 0…1).
clearancefloat0.0005Gap per side between a connector and its hole, so printed parts fit. (scene units; 0…0.01).
connector_countint1Connectors on each cut face. (1…16).
connector_spreadfloat0.35How far apart several connectors sit across the cut face. (factor; 0…0.95).
min_wallfloat0.0012Wall kept between a connector and the edge of the cut face. (scene units; 0…0.05).
segmentsint32Roundness of the connectors. (8…128).
labelsboolFalseEngrave each part's number on one of its cut faces (hidden once assembled).
label_prefixstr""Text before each part number: A gives A1, A2….
label_sizefloat0.006Height of the engraved text. (scene units; 0.001…0.1).
label_depthfloat0.0006How deep labels are engraved. (scene units; 0.0001…0.01).
explodefloat0.0Pull the parts apart along their cuts by this distance, to check cuts and connectors (0 keeps them assembled). (scene units; 0…10).
keep_originalboolFalseKeep the original beside the parts. Leaf originals are hidden backups; originals with children keep their visibility so unrelated descendants remain visible.

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.

  • Operation mesh.print_split_export
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Parts to export (default: the selected objects).
formatLiteral["stl", "3mf"]"stl"Format (stl / 3mf).
file_unitsLiteral["mm", "cm", "m", "in"]"mm"File Units (mm / cm / m / in).
up_axisLiteral["z", "y"]"z"Up Axis (z / y).
binaryboolTrueBinary STL (ASCII when off).
file_namestr—Archive or file name without extension (default: the part's name, or print_parts).

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.

  • Operation mesh.project_to_surface
  • In Model
ArgumentTypeDefaultDescription
sourceObjectRef—Source mesh placement; defaults to Make Live, else the sole selected object.
targetObjectRef—One edit placement, or the active Quad Draw Edit Mesh.
verticesSequence[int]—Stable vertex IDs; omit to project the target's selected components. (0…4294967295).
source_versionstr—Version from a canonical surface query; a changed source refuses the operation.
requeststr—An API-owned completed device request; arbitrary projected coordinates are never accepted.
eyeVec3Like—World-space camera position; required when snapping to backfaces is off. (scene units).
offsetfloat0.0001Normal offset from the source in world metres; zero places points exactly on it. (scene units; 0…1).
backfacesboolFalseAllow placement on source faces pointing away from the camera.

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.

  • Operation mesh.push_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit faces.
facesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
distancefloat0.0Positive pushes out along the normals, negative pushes in. (scene units).

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.

  • Operation mesh.push_pull
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected edges. (volume / surface).
distancefloat0.0Positive pushes away, negative pulls toward the center. (scene units).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.recalculate_normals
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
insideboolFalsePoint the normals toward the inside of the shape instead (for example an interior room).

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.

  • Operation mesh.remesh
  • Works on selected mesh objects (exactly 1)
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh to rebuild (default: the selected mesh object).
presetLiteral["custom", "character", "prop", "hardSurface", "scanCleanup"]"custom"Starting bundle: Character (smooth flow, 6000 faces), Prop (sharp edges, 4000), Hard Surface (sharp edges, 8000, light smoothing), Scan Cleanup (smooth, 10000, extra relaxing). Explicit parameters override it. (custom / character / prop / hardSurface / scanCleanup).
styleLiteral["organic", "mechanical"]"organic"Organic: smooth, evenly flowing quads for characters and soft shapes. Mechanical: the flow follows the mesh's sharp edges (detected automatically). (organic / mechanical).
engineLiteral["instantMeshes", "autoRemesher", "quadWild", "voxel", "panels", "auto"]"instantMeshes"Instant Meshes: fast field-aligned quads that hit the face count closely (up to three runs) and keep feature lines exactly. QuadWild: cuts the surface into patches along the field and the hard edges and fills each with a regular grid: the fewest poles and loops exactly on the hard edges; falls back to Instant Meshes when it cannot lay out a mesh. AutoRemesher: a global seamless parameterization with the cleanest edge flow and fewest poles on organic shapes; slower, quads only, at most one quad per two source triangles, falls back to Instant Meshes when it cannot remesh a mesh. Voxel: a watertight, even quad surface at one voxel size that joins touching parts and seals holes and self-intersections (sculpting); the target, topology and flow settings do not apply. Panels: for CAD, machined or boolean-built parts: fixed outlines and holes, graded quad grids or explicit n-gons inside flat regions, curved triangles paired into quads and feature lines marked sharp. Auto: Panels when at least half the surface is large flat panels, else Instant Meshes. (instantMeshes / autoRemesher / quadWild / voxel / panels / auto).
panel_flatnessfloat2.0Panels: the largest bend still merged into one flat panel. (degrees; 0…30).
panel_fillLiteral["quads", "ngons"]"quads"Graded Quads: fixed outlines and holes with an aligned interior grid graded to short border segments. N-gons: one face per flat region where its boundaries allow it. (quads / ngons).
panel_feature_anglefloat-1.0Panels: edges bending at least this much are feature lines (never crossed, marked sharp); -1 detects the mesh's own angle. (degrees; -1…180).
min_line_lengthfloat0.0Remove unmarked feature-line pieces shorter than this percentage of the source diagonal. 0 keeps every piece. (percent; 0…20).
line_gap_reachfloat0.0Join unused feature-line ends along mesh edges up to this percentage of the source diagonal. 0 leaves gaps open. (percent; 0…20).
straighten_linesfloat0.0Simplify shared panel borders within this percentage of the source diagonal, preserving junctions, holes and protected borders. 0 keeps every border point. (percent; 0…2).
voxel_sizefloat0.05Voxel engine: the size of one voxel. Smaller keeps more detail but makes many more faces; features thinner than a voxel disappear. (scene units; 0.0001…1000).
target_modeLiteral["faces", "vertices", "edgeLength"]"faces"Aim for a face count, a vertex count or a quad size. (faces / vertices / edgeLength).
target_face_countint4000About how many faces the result has. (4…1000000).
target_vertex_countint500About how many vertices the result has. (50…1000000).
target_edge_lengthfloat0.05About how long each quad edge is (targetMode edgeLength); the face count follows from the surface area. (scene units; 0.00001…10000).
topologyLiteral["quads", "mixed", "triangles"]"quads"Pure quads, quad-dominant with some triangles, or triangles. (quads / mixed / triangles).
crease_angleAny"auto"Align the flow to edges sharper than this many degrees; negative disables it; 'auto' follows the style (organic none; mechanical detects the angle for Instant Meshes and uses 90 degrees for AutoRemesher, which accepts 30-179).
adaptivityfloat1.0AutoRemesher: curvature-adaptive density, 0 = even quad size, 1 = smaller quads where the surface bends. (0…1).
edge_scalingfloat1.0AutoRemesher: edge scaling; larger values make coarser quads than the target count asks for. (1…4).
smooth_normalsfloat0.0AutoRemesher: project onto a smoothed (PN-triangle) version of faceted input, blending normals within this many degrees; 0 = off. (0…180).
align_boundariesboolTrueAlign the flow to open borders.
smooth_iterationsint2Tangential smoothing passes after extraction (projected back onto the surface). (0…10).
extrinsicboolTrueExtrinsic field smoothing (the Instant Meshes default).
symmetryAny—Mirror the result exactly across these local origin planes, e.g. ["x"]. Refused when the mesh itself is not symmetric there.
symmetry_autoboolFalseMirror across the plane the mesh is most symmetric about, when it is symmetric there (within 0.5 % of its size); otherwise no mirroring. Overrides symmetry.
symmetry_methodLiteral["halfDomain", "fold"]"halfDomain"Half and Mirror: remesh one half and mirror it, so poles mirror too and the center loop is a straight row on the plane. Fold: remesh everything, then mirror the result. (halfDomain / fold).
use_marked_linesboolTrueSharp-marked and selected edges are feature lines the result keeps (the selection counts unless nearly everything is selected).
tidy_polesboolTrueWalk poles (vertices not joining four edges) off sharp bends by edge rotation; vertex positions never move.
drop_flat_loopsboolFalseRemove loops lying flat so flat panels carry fewer, larger quads; sharp edges are kept.
merge_distancefloat0.0Weld points closer than this before remeshing (gaps between shells, scan cracks). 0 welds only coincident points. (scene units; 0…10000).
transfer_attributesboolTrueProject colors, vertex weights, materials, face shading and blendshape targets onto the new mesh. Off keeps only UVs. Edge data and custom normals are always reset.
keep_uv_islandsboolTrueEvery new face takes all of its UVs from the island under its center, so no face is stretched across a seam.
shadingLiteral["auto", "source"]"auto"Auto: smooth faces, with edges at the crease angle marked sharp. Source: keep the source's projected face shading. (auto / source).
keep_originalboolFalseKeep a hidden copy named "<name> (original)" beside the result, in the same undo step.
stagedstr""Token of a result computed by a RemeshJob (crate::remesh::stage_result); applied instead of recomputing.
show_originalboolFalsePreview helper: leave the mesh as it is (before/after comparison in a live preview).
ghost_originalboolFalsePreview display: the mounted Model viewport draws the original surface as a translucent ghost through the live result. No geometry change; cleared on Accept, Cancel and close.

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.

  • Operation mesh.remove_empty_render_triangles
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).
area_tolerancefloat5e-13Triangles with less area (m²) count as empty. (0.00000000000000000001…1).

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).

  • Operation mesh.remove_lamina_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).

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.

  • Operation mesh.remove_self_intersecting_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).

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.

  • Operation mesh.repair
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
fixesAnyrequiredFix ids to run, e.g. ["mergeNearby", "deleteLoose"].
dry_runboolFalsePlan only: report the exact effects without editing.
merge_distancefloat0.00009999999747378752Merge duplicate points: points closer than this join. (scene units; 0…1000000).
degenerate_distancefloat0.00009999999747378752Dissolve degenerate geometry: shorter edges collapse. (scene units; 0.000001…50).
area_tolerancefloat4.999999980020986e-13Remove empty render triangles: triangles with less area (m²) count as empty. (0.00000000000000000001…1).
spike_anglefloat5.0Collapse spike faces: corners sharper than this make a spike. (degrees; 0…90).
dispensable_anglefloat5.013380527496338Dissolve redundant points: maximum bend of a removable point. (degrees; 0…90).
non_planar_anglefloat5.0Triangulate / split non-planar faces: largest corner deviation from the face plane. (degrees; 0…90).
t_vertex_distancefloat0.00009999999747378752Split edges at T-vertices: a point closer than this to an edge is threaded into it. (scene units; 0…1000000).
fill_max_sidesint4Fill holes: largest opening (in edges) to cap; 0 caps every opening. (0…1000000000).

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.

  • Operation mesh.reset_face_groups
  • Works on selected mesh objects
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes.

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.

  • Operation mesh.resolve_bowtie_vertices
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices to fix on one mesh (default: every vertex the check finds). (0…4294967295).

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.

  • Operation mesh.reverse_normals
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
face_indicesSequence[int]—Flip only these faces of one mesh (default: the face selection, else every face). (0…4294967295).

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).

  • Operation mesh.rip_edge
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
fillboolFalseFill the gap of the rip with new faces so the surface stays connected.

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.

  • Operation mesh.rip_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
fillboolFalseFill the gap of the rip with new faces so the surface stays connected.

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.

  • Operation mesh.rip_vertex
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
fillboolFalseFill the gap of the rip with new faces so the surface stays connected.

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.

  • Operation mesh.rotate_components
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: every mesh with a selection of the current component kind).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence between the selection and the edge of the radius. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected mesh edges, so separate pieces that merely sit close stay put. (volume / surface).
axisVec3LikerequiredWorld-space rotation axis (normalized internally).
anglefloatrequiredAngle in degrees (right-handed about the axis). (degrees).
pivotVec3Like—World-space pivot (default: the world origin). (scene units).

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).

  • Operation mesh.scale_components
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: every mesh with a selection of the current component kind).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence between the selection and the edge of the radius. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected mesh edges, so separate pieces that merely sit close stay put. (volume / surface).
factorVec3LikerequiredScale factors along the three axes. (factor).
pivotVec3Like—World-space pivot (default: the world origin). (scene units).
basisAny—The three scale axes as [[x,y,z],[x,y,z],[x,y,z]] in world space (default: the world axes).

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.

  • Operation mesh.scatter_on_surface
  • In Model
ArgumentTypeDefaultDescription
surfaceObjectRef—The mesh to scatter on (default: the first selected object).
instanceObjectRef—The mesh object whose copies are scattered (default: the second selected object). Its own origin sits on the surface.
place_onLiteral["surface", "points", "faces", "edges"]"surface"Random spots over the faces, or one copy on every point, face center or edge midpoint. (surface / points / faces / edges).
distributionLiteral["count", "density"]"count"A fixed number of copies, or a number per square metre of surface. (count / density).
countint50How many copies are scattered over the surface. (1…10000).
densityfloat10.0Copies per square metre of surface. (0…10000).
seedint0Another seed gives another random layout. (0…1000000).
min_distancefloat0.0Keep copies at least this far apart (fewer than Count may fit). (scene units; 0…1000000).
align_to_normalboolTrueStand each copy on the surface (its Y axis along the normal); off keeps it upright.
normal_offsetfloat0.0Lift each copy off the surface along the normal (negative sinks it in). (scene units; -1000000…1000000).
random_rotationVec3Like[0.0, 180.0, 0.0]Largest random turn about each copy's X, Y and Z, in degrees (Y spins it about the normal). (degrees).
scale_minfloat1.0The smallest size a copy may get, as a factor of its original size. (0.001…1000).
scale_maxfloat1.0The largest size a copy may get, as a factor of its original size. (0.001…1000).
random_offsetVec3Like[0.0, 0.0, 0.0]Largest random move of each copy along the surface's X, Y and Z. (scene units).
vertex_setstr""Scatter only on the surface's Vertex Set. Empty: everywhere. Paint the Scatter modifier's weight map to thin the copies gradually.
invert_vertex_setboolFalseScatter outside the Vertex Set instead.
add_as_modifierboolFalseAdd an editable Scatter modifier to the surface (the copies follow every later change) instead of a new object.
keep_surfaceboolTrueThe modifier shows the surface with its copies; off leaves only the copies.

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.

  • Operation mesh.screw
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
add_as_modifierboolFalseAdd an editable modifier to each mesh instead of changing its geometry.
axisLiteral["x", "y", "z"]"z"Local axis the profile turns around, or the Axis Object's axis. (x / y / z).
anglefloat360.0Degrees swept per iteration. 360 closes a full revolution. (degrees; -36000…36000).
stepsint16Segments per iteration. (1…10000).
screw_offsetfloat0.0Distance advanced along the axis per iteration (helical pitch). (scene units).
axis_objectObjectRef—An object whose local axis and position define the screw axis (empty: the mesh's own axis).
iterationsint1Repeat the sweep; angle and offset multiply. (1…10000).
use_mergeboolFalseShare profile points that lie on the axis between all steps (no screw offset).
merge_distancefloat0.01Points this close to the axis are merged. (scene units; 0…1000000).
flip_normalsboolFalseReverse the generated face winding.
calculate_orderboolFalseOrder connected profile edges so the faces point outward.
smooth_shadingboolTrueFaces without a source face shade smooth.
use_object_screw_offsetboolFalseUse the Axis Object's distance along the axis as the screw offset.
stretch_uboolFalseStretch U across the whole sweep.
stretch_vboolFalseStretch V across the profile height.

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.

  • Operation mesh.select_axis_loops
  • Works on selected mesh objects (exactly 1)
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh to select on (default: the selected mesh object).
axesAny["x", "y", "z"]Local axes the loops should run along, e.g. ["y"] (default all three).
tolerancefloat25.0Largest angle in degrees between a loop edge and the axis. (1…60).

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.

  • Operation mesh.select_intersecting
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to inspect (default: the one selected mesh).
selectboolTrueSelect the faces found (false: report only).

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.

  • Operation mesh.select_poles
  • Works on selected mesh objects (exactly 1)
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh to select on (default: the selected mesh object).
min_bendfloat0.0Only poles where the surface bends at least this many degrees (0 = every pole). (0…180).

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', …).

  • Operation mesh.separate
  • In Model
ArgumentTypeDefaultDescription
byLiteral["selection", "material", "looseParts"]"selection"How the mesh is split: the selected faces, one object per material, or one object per loose part. (selection / material / looseParts).
meshesSequence[MeshRef]—Meshes to separate (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—With 'selection': dense face indices of one mesh (default: the face selection). (0…4294967295).

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.

  • Operation mesh.set.add
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
membersAny—Component names: "Cube.vtx[0:7]", "Cube.e[4]", "Cube.f[2]", "Cube.island[5]". Default: the selected components.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.create
  • In Model
ArgumentTypeDefaultDescription
namestr—Default: the type's name ("Vertex Set"); taken names get a number.
membersAny—Component names: "Cube.vtx[0:7]", "Cube.e[4]", "Cube.f[2]", "Cube.island[5]". Default: the selected components.
typeLiteral["vertex", "edge", "face", "island"]—Required only for an empty set. (vertex / edge / face / island).
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.delete
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.difference
  • In Model
ArgumentTypeDefaultDescription
setsAnyrequiredTwo or more set names.
namestr"Difference"Name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.intersection
  • In Model
ArgumentTypeDefaultDescription
setsAnyrequiredTwo or more set names.
namestr"Intersection"Name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.list
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.
typeLiteral["vertex", "edge", "face", "island"]—Type (vertex / edge / face / island).

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.

  • Operation mesh.set.mark_edges
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
as_Literal["seams", "hardEdges"]requiredAs (seams / hardEdges).
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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]".

  • Operation mesh.set.members
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.remove
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
membersAny—Component names: "Cube.vtx[0:7]", "Cube.e[4]", "Cube.f[2]", "Cube.island[5]". Default: the selected components.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.rename
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
namestrrequiredName.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.select
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.
modeLiteral["replace", "add", "remove", "toggle"]"replace"How to combine with the current selection. (replace / add / remove / toggle).

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.

  • Operation mesh.set.set_members
  • In Model
ArgumentTypeDefaultDescription
setstrrequiredThe set's name.
membersAnyrequiredComponent names: "Cube.vtx[0:7]", "Cube.e[4]", "Cube.f[2]", "Cube.island[5]". Default: the selected components.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set.union
  • In Model
ArgumentTypeDefaultDescription
setsAnyrequiredTwo or more set names.
namestr"Union"Name.
meshMeshRef—One mesh (or its object) whose set to use; default: every mesh with the set.

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.

  • Operation mesh.set_component_axis
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: every mesh with a selection of the current component kind).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence between the selection and the edge of the radius. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected mesh edges, so separate pieces that merely sit close stay put. (volume / surface).
axisLiteral["x", "y", "z"]requiredAxis (x / y / z).
valuefloatrequiredWorld coordinate in metres. (scene units).

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.

  • Operation mesh.set_edge_length
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
sourceLiteral["value", "active", "shortest", "longest", "average"]"value"Where the length comes from: the value below, or the active, shortest, longest or average selected edge. (value / active / shortest / longest / average).
valuefloat1.0With source 'value': the length. (scene units; 0…1000000).
edge_indexint—With source 'active': the reference edge (default: the last selected edge). (0…4294967295).
adjustmentLiteral["set", "add", "subtract"]"set"Whether the length replaces each edge's length or is added to or taken from it. (set / add / subtract).
anchorLiteral["center", "start", "end"]"center"Which part of each edge stays put: its middle, its start or its end. (center / start / end).
reverse_endpointsboolFalseSwap which end is the start.
spaceLiteral["world", "object"]"world"Measure lengths in world or object space. (world / object).

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).

  • Operation mesh.set_face_color
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit faces (default: the mesh with picked faces).
face_indicesSequence[int]—Dense face indices (default: the picked faces). (0…4294967295).
rgbaColor4[1.0, 0.0, 0.0, 1.0]The color, linear RGBA.
attributestr""Face-corner color attribute written (empty: the active corner colors, else a new 'Color').

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.

  • Operation mesh.set_positions
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
positionsAnyrequiredOne position per vertex, flat or as triples.

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.

  • Operation mesh.set_topology
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to rebuild (default: the mesh with a component selection, else the selected mesh object).
positionsAnyrequiredVertex positions (local space, scene units): a flat list [x0, y0, z0, x1, …] or [x, y, z] triples.
facesAnyrequiredFaces as lists of vertex indices (at least 3 each).
loose_edgesAny—Edges without faces as [a, b] vertex pairs.

Shade Flat

tb.ops.mesh.shade_flat(*, meshes: Sequence[MeshRef] = ...) -> Result

Shade every face flat.

  • Operation mesh.shade_flat
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).

Shade Smooth

tb.ops.mesh.shade_smooth(*, meshes: Sequence[MeshRef] = ...) -> Result

Shade every face smooth.

  • Operation mesh.shade_smooth
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).

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.

  • Operation mesh.sharpen_edges
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
anglefloat30.0Edges whose faces meet at this angle or more are marked. (degrees; 1…180).
modeLiteral["add", "replace"]"add"'replace' clears the chosen channels in scope first. (add / replace).
scopeLiteral["auto", "mesh", "selection"]"auto"'auto' = the component selection when a mesh has one, else the whole mesh. (auto / mesh / selection).
sharpboolTrueMark sharp (hard shading across the edge).
creaseboolTrueSet subdivision crease 1.
bevel_weightboolTrueSet bevel weight 1 where it is still 0.
seamboolFalseAlso mark UV seams.
smoothboolTrueFinish with Smooth by Angle.
smooth_anglefloat60.0Smooth by Angle threshold. (degrees; 0…180).
dry_runboolFalseOnly count the edges that would be marked.

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.

  • Operation mesh.shear
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
shear_axisLiteral["x", "y", "z"]"x"Axis along which the vertices slide. (x / y / z).
offset_axisLiteral["x", "y", "z"]"y"Axis whose distance from the selection center controls the amount of sliding. (x / y / z).
amountfloat0.0Slide per unit of offset-axis distance. (-5…5).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.show_panels
  • In Model
ArgumentTypeDefaultDescription
showboolTrueShow.
meshMeshRef—The mesh to rebuild (default: the selected mesh object).
panel_flatnessfloat2.0Panels: the largest bend still merged into one flat panel. (degrees; 0…30).
panel_feature_anglefloat-1.0Panels: edges bending at least this much are feature lines (never crossed, marked sharp); -1 detects the mesh's own angle. (degrees; -1…180).
min_line_lengthfloat0.0Remove unmarked feature-line pieces shorter than this percentage of the source diagonal. 0 keeps every piece. (percent; 0…20).
line_gap_reachfloat0.0Join unused feature-line ends along mesh edges up to this percentage of the source diagonal. 0 leaves gaps open. (percent; 0…20).
keep_uv_islandsboolTrueEvery new face takes all of its UVs from the island under its center, so no face is stretched across a seam.

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.

  • Operation mesh.slide_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
offsetfloat0.1Slide factor, -1..1 (beyond with clamp off). Negative and positive slide to opposite sides. (-10…10).
factorfloat—Alias of offset. (-10…10).
evenboolFalseMove every vertex the same distance.
flipboolFalseWith even: measure from the far end of each rail.
clampboolTrueKeep vertices between their neighbours.

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.

  • Operation mesh.slide_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
offsetfloat0.1Slide factor, -1..1 (beyond with clamp off). Negative and positive slide to opposite sides. (-10…10).
factorfloat—Alias of offset. (-10…10).
evenboolFalseMove every vertex the same distance.
flipboolFalseWith even: measure from the far end of each rail.
clampboolTrueKeep vertices between their 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.

  • Operation mesh.smooth
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertices of the component selection, or every vertex). (0…4294967295).
mesh_idMeshRef—Compatibility target mesh alias.
vertex_indicesSequence[int]—Compatibility vertex target alias. (0…4294967295).
iterationsint4Positive safe-integer smoothing pass count; the numerical operation clamps to 100. (1…9007199254740991).
methodLiteral["uniform", "laplacian"]"uniform"How the points relax: Uniform averages each point with its neighbours, Laplacian also weighs edge lengths for a cleaner result. (uniform / laplacian).
lambda_float1.0Laplacian strength in square metres, or dimensionless (up to 1000) with Normalized on. (area; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
lambda_borderfloat0.5How strongly points on open borders are smoothed; 0 keeps the borders in place. (0…1000).
preserve_volumeboolTrueKeeps the mesh from shrinking while it is smoothed.
normalizedboolFalseScales each step by the local edge lengths, so dense and sparse areas smooth at the same rate.
vertex_setstr | None—Vertex Set limiting the smoothing; missing means full influence.
invert_vertex_setboolFalseSmooths the points outside the chosen vertex set instead of the ones in it.
strengthfloat0.5Blend toward the neighbour average in each pass. (0…1).
preserve_boundaryboolTrueKeep open-boundary vertices fixed in place.
axesAny—Axes the smoothing may move (the X / Y / Z toggles), e.g. ["x", "y"]; omitted = all.
stagedstr—Completed background preview; scripts normally omit this.
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.smooth_by_angle
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
anglefloat60.0Edges whose faces meet at more than this angle stay sharp (default 30°). (degrees; 0…180).
ignore_sharpnessboolFalseIgnore (and clear where smooth) existing sharp edges and flat faces.
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.snap_to_target
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit indices (default: the mesh with the selection).
sourcesSequence[int]—Dense indices of the components to move (current mode's kind); needs 'target'. (0…4294967295).
targetint—Dense index of the target component (default: the last one picked). (0…4294967295).

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.

  • Operation mesh.solidify
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
add_as_modifierboolFalseAdd an editable modifier to each mesh instead of changing its geometry.
face_indicesSequence[int]—Solidify only these faces of one target mesh; absent uses the component selection, or whole objects in Object mode. (0…4294967295).
vertex_indicesSequence[int]—Solidify faces whose every corner point is listed (one target mesh). (0…4294967295).
edge_indicesSequence[int]—Solidify faces whose every edge is listed (one target mesh). (0…4294967295).
modeLiteral["simple", "complex"]"simple"Simple offsets points along their normals. Complex thickens per face side and keeps walls even where three or more faces meet (whole meshes only). (simple / complex).
thickness_modeLiteral["fixed", "even", "constraints"]"constraints"Fixed averages the faces' offsets, Even weighs them by angle, Constraints solves them together for the most even walls. (fixed / even / constraints).
boundary_shapeLiteral["none", "round", "flat"]"none"Reshape open borders: Round follows the surface, Flat keeps each border in one plane. (none / round / flat).
thicknessfloat0.05Signed shell thickness. Zero is not a shell; a negative value grows to the other side. (scene units).
offsetfloat0.0Where the shell sits relative to the surface: -1 inward, 0 centered, 1 outward. (-1…1).
close_bordersboolTrueConnect the inner and outer surfaces along open boundary edges to close the shell.
only_rimboolFalseKeep the source surface and its border walls without adding a second surface.
even_thicknessboolFalseCompensate for angled faces to keep the shell thickness more uniform around corners.
merge_thresholdfloat0.0001Points closer than this merge before thickening. (scene units; 0…1).
thickness_clampfloat0.0Limit each point's offset to this multiple of its shortest connected edge so the shell does not overshoot small details (0: off). (0…100).
angle_clampboolFalseAlso scale the Thickness Clamp limit by how sharply the neighbouring faces fold at each point.
flip_facesboolFalseReverse the face orientation of the whole shell, e.g. when it renders inside-out.
outer_creasefloat0.0Subdivision crease of the outer shell's border edges. (factor; 0…1).
inner_creasefloat0.0Subdivision crease of the inner shell's border edges. (factor; 0…1).
bevel_convexfloat0.0Bevel weight added to outside edges (negative: to inside edges). (factor; -1…1).
rim_creasefloat0.0Subdivision crease of the rim edges joining the shells. (factor; 0…1).

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.

  • Operation mesh.sort_elements
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to sort (default: meshes with a selection, else the selected objects).
elementsLiteral["vertex", "face"]—What to reorder (default: faces in Face mode, else points). (vertex / face).
typeLiteral["direction", "distance", "material", "selected", "random", "reverse"]"direction"How to order the elements. (direction / distance / material / selected / random / reverse).
axisLiteral["x", "y", "z"]"z"Axis sort direction (mesh space). (x / y / z).
axis_vectorVec3Like—Any mesh-space sort direction (overrides axis).
centerVec3Like[0.0, 0.0, 0.0]Distance sort: the mesh-space point to measure from. (scene units).
seedint0Random sort: seed for a reproducible shuffle. (0…2147483647).
reverseboolFalseReverse the resulting order.

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.

  • Operation mesh.spin
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense indices of one mesh, of the current component kind (default: the live selection). (0…4294967295).
stepsint12Segments of the sweep. (2…128).
anglefloat360.0Sweep angle; a full turn closes the ring. (degrees; -360…360).
axisLiteral["x", "y", "z"]"y"Mesh-space axis to turn around. (x / y / z).
axis_vectorVec3Like—Any mesh-space axis direction (overrides Axis; zero uses Axis).
centerVec3Like[0.0, 0.0, 0.0]Point the axis passes through, in mesh space. (scene units).
dupliboolFalsePlace a rotated copy of the profile at each step instead of building walls.
flip_normalsboolFalseReverse the facing of every generated face.

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.

  • Operation mesh.split_concave_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).

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.

  • Operation mesh.split_edge_at_t_vertex
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
distancefloat0.0001A point closer than this to an edge is a T-vertex. (scene units; 0…1000000).
pairsAny—Explicit [[vertex, edge], …] pairs of one mesh (default: every T-vertex found).

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.

  • Operation mesh.split_non_planar_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).
angle_thresholdfloat5.0Largest angle a corner may leave its piece's plane. (degrees; 0…90).

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.

  • Operation mesh.subdivide_edges
  • Works on selected edges
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense edge indices of one mesh (default: the edge selection). (0…4294967295).
cutsint1Number of evenly spaced vertices inserted on each edge. (1…100).
smoothnessfloat0.0Bow the new points outward to follow the surface curvature (0 = flat, 1 = round). (0…1000).
fractalfloat0.0Random displacement of the new points, relative to each edge length. (0…1000000).
along_normalfloat0.0How much of the fractal displacement is kept along the surface normal (1 = only along the normal). (factor; 0…1).
seedint0Seed for the repeatable fractal pattern. (0…1000000).
cut_facesboolFalseConnect the new points across their faces (grids, strips and corner fills) instead of only adding points on the edges.
quad_cornerLiteral["innerVert", "path", "straightCut", "fan"]"straightCut"With Cut Faces: how a quad with two neighbouring cut edges is filled. (innerVert / path / straightCut / fan).
ngonboolTrueWith Cut Faces: allow faces with more than four sides; off limits new faces to triangles and quads.

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.

  • Operation mesh.subdivide_faces
  • Works on selected faces
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense face indices of one mesh (default: the face selection). (0…4294967295).
iterationsint1How many times each face is divided; each step multiplies the face count. (1…5).

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.

  • Operation mesh.subdivide_smooth
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
levelint1Subdivision passes. Each pass smooths the surface and splits each quad into four. (1…5).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.
boundaryLiteral["roundCorners", "keepCorners"]"roundCorners"Open-border corners: Round smooths them; Sharp keeps their positions while subdividing the border. (roundCorners / keepCorners).
use_creasesboolTrueUse the mesh edge and vertex crease weights to preserve sharp features during subdivision.
uv_smoothLiteral["none", "keepCorners", "keepCornersJunctions", "keepCornersJunctionsConcave", "keepBoundaries", "all"]"keepBoundaries"How UVs follow the smoothing: None keeps them linear, Keep Boundaries keeps island borders straight (the default), All smooths everything. (none / keepCorners / keepCornersJunctions / keepCornersJunctionsConcave / keepBoundaries / all).

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.

  • Operation mesh.subdivide_vertices
  • Works on selected vertices
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: every mesh with a component selection).
indicesSequence[int]—Dense vertex indices of one mesh (default: the vertex selection). (0…4294967295).
cutsint1Number of evenly spaced vertices inserted on each edge. (1…100).
smoothnessfloat0.0Bow the new points outward to follow the surface curvature (0 = flat, 1 = round). (0…1000).
fractalfloat0.0Random displacement of the new points, relative to each edge length. (0…1000000).
along_normalfloat0.0How much of the fractal displacement is kept along the surface normal (1 = only along the normal). (factor; 0…1).
seedint0Seed for the repeatable fractal pattern. (0…1000000).
cut_facesboolFalseConnect the new points across their faces (grids, strips and corner fills) instead of only adding points on the edges.
quad_cornerLiteral["innerVert", "path", "straightCut", "fan"]"straightCut"With Cut Faces: how a quad with two neighbouring cut edges is filled. (innerVert / path / straightCut / fan).
ngonboolTrueWith Cut Faces: allow faces with more than four sides; off limits new faces to triangles and quads.

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.

  • Operation mesh.target_weld
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—The mesh (default: the one mesh with a component selection, else the one selected mesh).
kindLiteral["vertex", "edge"]"vertex"Merge two vertices, or two edges end to end. (vertex / edge).
sourceintrequiredThe vertex or edge that moves. (0…4294967295).
targetintrequiredThe vertex or edge it merges onto. (0…4294967295).
atLiteral["target", "center"]"target"Where the merged points go: the target's points, or halfway between. (target / center).

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.

  • Operation mesh.tidy_poles
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
protect_anglefloat30.0Edges bending more than this many degrees never turn. (degrees; 0…180).
roundsint6Improvement passes; each pass turns every edge that still helps. (1…20).

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.

  • Operation mesh.toggle_cutters
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Objects whose cutters to toggle (default: the selection, else every object).
visiblebool—Show (true) or hide (false) instead of toggling.

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.

  • Operation mesh.transfer_attributes_uv
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Optional target resource; exact target placements must agree.
targetsSequence[ObjectRef]—Targets.
sourceMeshRef—Optional source resource; exact source placement must agree.
source_placementObjectRef—Source.
channelsAny["uv"]Channels.
stagedstr—Staged.

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.

  • Operation mesh.translate_components
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: every mesh with a selection of the current component kind).
soft_radiusfloat0.0Soft selection radius (0 = off). 1 reaches 10 % of the mesh's bounding-box diagonal; nearby vertices follow with the falloff weight. (0…10).
soft_falloffLiteral["smooth", "linear", "sharp", "root", "sphere"]"smooth"Shape of the soft-selection influence between the selection and the edge of the radius. (smooth / linear / sharp / root / sphere).
soft_modeLiteral["volume", "surface"]"volume"Volume uses straight-line distance; Surface follows connected mesh edges, so separate pieces that merely sit close stay put. (volume / surface).
offsetVec3LikerequiredWorld-space offset. (scene units).

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.

  • Operation mesh.triangulate
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
quad_methodLiteral["BEAUTY", "FIXED", "FIXED_ALTERNATE", "SHORTEST_DIAGONAL", "LONGEST_DIAGONAL"]"BEAUTY"Which diagonal splits four-sided faces. (BEAUTY / FIXED / FIXED_ALTERNATE / SHORTEST_DIAGONAL / LONGEST_DIAGONAL).
ngon_methodLiteral["BEAUTY", "CLIP"]"BEAUTY"Beauty refinement or ear clipping for polygons with more than four corners. (BEAUTY / CLIP).
min_verticesint4Only split polygons with at least this many vertices. (4…2147483647).
face_indicesSequence[int]—Triangulate only these faces of one mesh (default: the face selection, else every face). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.triangulate_non_planar_faces
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
indicesSequence[int]—Dense face indices to fix on one mesh (default: every face the check finds). (0…4294967295).
angle_thresholdfloat5.0Maximum face planarity deviation before triangulation. (degrees; 0…90).

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.

  • Operation mesh.tris_to_quads
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
angle_thresholdfloat40.0Max face angle: adjacent triangles whose normals differ by more stay separate; 180 disables the test. (degrees; 0…180).
shape_angle_thresholdfloat40.0Max shape angle: every corner of the joined quad must be within this angle of 90 degrees; 180 disables the test. (degrees; 0…180).
compare_uvboolFalseKeep triangles separate when their UVs differ along the shared edge.
compare_vcolboolFalseKeep triangles separate when their colors differ.
compare_seamboolFalseKeep triangles separate across UV seam edges.
compare_sharpboolFalseKeep triangles separate across sharp edges.
compare_materialboolFalseKeep triangles separate when their materials differ.
deselect_joinedboolFalseAfterwards select only the triangles that stayed separate.
face_indicesSequence[int]—Only these faces of one mesh (default: the face selection, else every face). (0…4294967295).

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).

  • Operation mesh.uv_map.add
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
namestr"UVMap"Name.

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.

  • Operation mesh.uv_map.copy
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstrrequiredUV map name.
namestr"UVMap"Name.

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.

  • Operation mesh.uv_map.get
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh (default: the one selected mesh object).
mapstr—UV map name (default: the active one).
islandsboolFalseAlso return each face's island.

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).

  • Operation mesh.uv_map.remove
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstrrequiredUV map name.

Rename UV Map

tb.ops.mesh.uv_map.rename(*, mesh: MeshRef = ..., uv_map: str, name: str) -> Result

Rename a UV map.

  • Operation mesh.uv_map.rename
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstrrequiredUV map name.
namestrrequiredNew name (made unique).

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.

  • Operation mesh.uv_map.set
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh (default: the one selected mesh object).
mapstr—UV map name (default: the active one).
uvsAnyrequiredUVs, flat [u0, v0, …] or [u, v] rows.
cornersSequence[int]—Face corners the UVs are for (default: every corner).

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.

  • Operation mesh.uv_map.set_active
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstrrequiredUV map name.

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.

  • Operation mesh.uv_map.set_clone
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstr—UV map name; omit to clear.

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.

  • Operation mesh.uv_map.set_render
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstrrequiredUV map name.

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.

  • Operation mesh.uv_map.set_stencil
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
uv_mapstr—UV map name; omit to clear.

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.

  • Operation mesh.vertex_curve
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh of explicit indices (default: the mesh with the picked points).
vertex_indicesSequence[int]—Knots in curve order (default: the picked points in pick order). (0…4294967295).
mixfloat1.0Blend from the original positions (0) to the curve (1). (factor; 0…1).
bulgefloat1.0Two points: 1 is a half circle, 0 a straight line. (0…4).
flipboolFalseTwo points: bend to the other side.
rotate90boolFalseTwo points: stand the arc up along the surface normal.
offsetfloat0.0Three points: push the middle point sideways off the line between the outer two. (scene units).
spline_tensionfloat0.0Four or more points: tighter (positive) or looser (negative) curve, in percent. (-100…100).
space_evenlyboolFalseSpread every path point evenly along the curve (inner picked points may slide).
path_metricLiteral["length", "edges"]"length"How the path between two picked points is chosen. (length / edges).
end_tangentsLiteral["surface", "selection"]"surface"Four or more points: the ends follow the mesh's edge flow, or aim at the next picked point. (surface / selection).

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.

  • Operation mesh.voxel_remesh
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to remesh (default: the selected objects' meshes).
voxel_sizefloat—Voxel edge length in mesh units (default: about 20 000 quads over the surface). (0.000001…1000000).
preserve_volumeboolTrueProject the result onto the original surface (keeps the volume and fine shape).
preserve_attributesboolTrueCarry the mask, face sets, colors, UVs and other data over by projection.
relaxint2Relaxation passes that even the quads before the projection. (0…20).

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.

  • Operation mesh.weight_map.add
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
namestr"Weight Map"Name.

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).

  • Operation mesh.weight_map.assign
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
weightfloat1.0Weight (factor; 0…1).
modeLiteral["replace", "add", "subtract"]"replace"Mode (replace / add / subtract).
indicesSequence[int]—Dense vertex indices (default: the vertices of the component selection). (0…4294967295).

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).

  • Operation mesh.weight_map.clean
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
all_mapsboolFalseAll Maps.
limitfloat0.0Limit (0…1).
keep_singleboolFalseKeep at least one map per vertex.

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.

  • Operation mesh.weight_map.flood
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—The mesh object (default: the active object).
mapstrrequiredThe weight map painted: "Cloth Pin", "Cloth Stiffness", "UV Seam Allow" or "UV Seam Avoid".
operationLiteral["replace", "add", "subtract", "scale", "smooth"]"replace"Operation (replace / add / subtract / scale / smooth).
valuefloat1.0Target (Replace) or amount (Add / Subtract). (0…1).
strengthfloat1.0How far each vertex moves (the brush opacity). (0…1).
minfloat0.0Min (0…1).
maxfloat1.0Max (0…1).
iterationsint1Smooth passes. (1…100).

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).

  • Operation mesh.weight_map.lock
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
lockedboolTrueLocked.

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.

  • Operation mesh.weight_map.mirror
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
flip_namesboolTrueFlip Names.
tolerancefloat0.0001Tolerance (scene units; 0…1).

Normalize Weight Map

tb.ops.mesh.weight_map.normalize(*, mesh: MeshRef = ..., map: str = ...) -> Result

Scale a weight map so its largest weight is 1.

  • Operation mesh.weight_map.normalize
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).

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).

  • Operation mesh.weight_map.normalize_all
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

Remove Weight Map

tb.ops.mesh.weight_map.remove(*, mesh: MeshRef = ..., map: str = ...) -> Result

Remove a weight map and its weights.

  • Operation mesh.weight_map.remove
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).

Remove Empty Weight Maps

tb.ops.mesh.weight_map.remove_empty(*, mesh: MeshRef = ...) -> Result

Remove weight maps without any member.

  • Operation mesh.weight_map.remove_empty
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).

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.

  • Operation mesh.weight_map.remove_from
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
indicesSequence[int]—Dense vertex indices (default: the vertices of the component selection). (0…4294967295).

Rename Weight Map

tb.ops.mesh.weight_map.rename(
    *,
    mesh: MeshRef = ...,
    map: str = ...,
    name: str,
) -> Result

Rename a weight map; its weights stay.

  • Operation mesh.weight_map.rename
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
namestrrequiredNew name (made unique).

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.

  • Operation mesh.weight_map.select
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).
deselectboolFalseDeselect.

Set Active Weight Map

tb.ops.mesh.weight_map.set_active(*, mesh: MeshRef = ..., map: str = ...) -> Result

Make a weight map the active one.

  • Operation mesh.weight_map.set_active
  • In Model
ArgumentTypeDefaultDescription
meshMeshRef—Mesh to edit (default: the mesh with a component selection, else the selected mesh object).
mapstr—Weight map name (default: the active map).

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.

  • Operation mesh.weight_map.set_weights
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—The mesh object (default: the active object).
mapstrrequiredThe weight map painted: "Cloth Pin", "Cloth Stiffness", "UV Seam Allow" or "UV Seam Avoid".
weightsAny—The weight of every vertex, in vertex order.
indicesSequence[int]—Vertices to set (with values).
valuesAny—The weights of indices, in the same order.
dragint—Identifies one brush stroke: equal values coalesce into one undo step.

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).

  • Operation mesh.weighted_normals
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
modeLiteral["face-area", "angle-at-vert", "combined"]"face-area"What makes a face count more in its corners' normals. (face-area / angle-at-vert / combined).
weightint5050 weighs every face equally; higher favours the largest faces. (1…100).
keep_sharpboolFalseSharp edges keep their faces' normals apart.
thresholdfloat0.01Faces this close in weight count as equal. (0…10).
face_influenceboolFalseOnly the faces with the strongest face strength (Bevel's Face Strength sets it) contribute.
vertex_setstr—Only points in this Vertex Set change; empty: every point.
invert_vertex_setboolFalseChange only the points outside the Vertex Set.
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.weld
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
modeLiteral["all", "connected"]"all"All welds any points in range; Connected only collapses short edges. (all / connected).
distancefloat0.001Points closer than this distance merge. (scene units; 0…1000000).
only_loose_edgesboolFalseConnected mode only: collapse edges without faces, such as sewing edges.
vertex_setstr""Only points in this Vertex Set weld.
invert_vertex_setboolFalseWeld the points outside the Vertex Set instead.
unselectedboolFalseMerge the picked points onto nearby unpicked points, which stay in place. Needs picked points; All mode.
sharp_edgesboolFalseMark welded seams sharp, keeping the hard shading the separate points had.
verticesSequence[int]—Weld only these vertex indices of one mesh (default: the component selection, else every point). (0…4294967295).
add_as_modifierboolFalseAdd an editable modifier to each mesh object instead of changing its geometry.

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.

  • Operation mesh.wireframe
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to edit (default: meshes with a component selection, else the selected mesh objects).
add_as_modifierboolFalseAdd an editable modifier to each mesh instead of changing its geometry.
face_indicesSequence[int]—Frame only these faces of one target mesh; absent uses the component selection, or whole objects in Object mode. (0…4294967295).
vertex_indicesSequence[int]—Frame faces whose every corner point is listed (one target mesh). (0…4294967295).
edge_indicesSequence[int]—Frame faces whose every edge is listed (one target mesh). (0…4294967295).
styleLiteral["frame", "tubes"]"frame"Frame makes one connected lattice; Tubes makes independent capped square bars along polygon edges. (frame / tubes).
thicknessfloat0.05Width of the bars. Tubes accepts either sign; zero cannot make a bar. (scene units; -1000000…1000000).
offsetfloat0.0Frame: -1 inside, 0 centered, 1 outside. Tubes: shift along the averaged normal, in half-thickness units. (-1…1).
replace_originalboolTrueKeep only the frame; off keeps the original faces too.
use_boundaryboolFalseAlso build struts along open borders.
even_thicknessboolTrueKeep the struts equally thick at sharp corners.
relative_thicknessboolFalseScale each strut by the size of the faces around it.
use_creaseboolFalseCrease the inner edges so subdivision keeps the struts crisp.
crease_weightfloat1.0Crease value of those edges. (factor; 0…1).
material_offsetint0Shift generated faces within the existing material slots; unassigned faces stay unassigned. (-32768…32767).
vertex_setstr | NoneNoneVertex Set whose members get the full thickness. None or missing means full influence everywhere.
invert_vertex_setboolFalseGive the points outside the Vertex Set the full thickness instead.
weight_factorfloat0.0Thickness kept outside the Vertex Set. (factor; 0…1).