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

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

Analyze Mesh for Solid

tb.ops.solid.analyze_mesh(
    *,
    node: ObjectRef,
    tolerance: float = 0.0,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
) -> Result

Check a mesh before Mesh → Solid: open, non-manifold and flipped edges, flat regions, sphere and cylinder fits with their measured deviation, and the recommended route with the reason.

  • Operation solid.analyze_mesh
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredMesh object to analyze.
tolerancefloat0.0Deviation a fitted route may introduce; 0 means 0.1% of the mesh size. (scene units).
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the tolerance. (m / cm / mm / inch / foot).

Array

tb.ops.solid.array(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    mode: Literal["linear", "radial"] = "linear",
    count: int = 3,
    offset: Vec3Like = [1.5, 0.0, 0.0],
    axis_origin: Vec3Like = [0.0, 0.0, 0.0],
    axis_direction: Vec3Like = [0.0, 1.0, 0.0],
    angle: float = 360.0,
    merge: bool = False,
    staged: str = "",
) -> Result

Copy the solid along a line or around an axis, optionally merged into one solid.

  • Operation solid.array
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to copy.
modeLiteral["linear", "radial"]"linear"Copy along a line or around an axis. (linear / radial).
countint3Number of instances, the original included. (2…1000).
offsetVec3Like[1.5, 0.0, 0.0]Step between instances (linear, world, 'unit').
axis_originVec3Like[0.0, 0.0, 0.0]A point on the axis (radial, world, 'unit').
axis_directionVec3Like[0.0, 1.0, 0.0]Axis direction (radial, world).
anglefloat360.0Total angle covered (radial); 360 spaces the instances evenly. (degrees; -360…360).
mergeboolFalseUnite the copies with the original into one solid.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Bake Linked Mesh

tb.ops.solid.bake_mesh(*, node: ObjectRef) -> Result

Stop a linked mesh following its solid: it keeps its current shape and becomes an ordinary mesh; its provenance stays recorded.

  • Operation solid.bake_mesh
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredLinked mesh object (from Solid → Mesh with Keep linked).

Chamfer

tb.ops.solid.chamfer(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    edges: Any,
    mode: Literal["equal", "two_distances", "distance_angle"] = "equal",
    distance: float = 0.05,
    distance2: float = 0.1,
    angle: float = 45.0,
    flip: bool = False,
    chain: bool = True,
    staged: str = "",
) -> Result

Bevel the picked edges: equal distances, two distances, or a distance and an angle.

  • Operation solid.chamfer
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to bevel.
edgesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
modeLiteral["equal", "two_distances", "distance_angle"]"equal"How the second side is set. (equal / two_distances / distance_angle).
distancefloat0.05Chamfer distance (first face). (scene units).
distance2float0.1Second face distance (two distances). (scene units).
anglefloat45.0Chamfer angle to the first face (distance and angle). (degrees; 1…89).
flipboolFalseSwap which face takes the first distance.
chainboolTrueContinue along edges that meet the picked ones tangentially (a rounded rim as one chain).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Conversion Provenance

tb.ops.solid.conversion_info(*, node: ObjectRef) -> Result

Where an object's geometry came from (source, linked or independent, exact or measured accuracy, current or changed) and which objects were converted from it.

  • Operation solid.conversion_info
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredMesh, curve or solid object.

Solid Box

tb.ops.solid.create_box(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    width: float = 1.0,
    height: float = 1.0,
    depth: float = 1.0,
    position: Vec3Like = [0.0, 0.0, 0.0],
    rotation: Vec3Like = [0.0, 0.0, 0.0],
    anchor: Literal["base_center", "center", "corner"] = "base_center",
    name: str = ...,
    staged: str = "",
) -> Result

Create a B-rep box. Lengths are in 'unit'; 'anchor' picks which point sits at 'position'.

  • Operation solid.create_box
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
widthfloat1.0X size. (scene units).
heightfloat1.0Y size. (scene units).
depthfloat1.0Z size. (scene units).
positionVec3Like[0.0, 0.0, 0.0]World position in 'unit'.
rotationVec3Like[0.0, 0.0, 0.0]XYZ Euler rotation in degrees.
anchorLiteral["base_center", "center", "corner"]"base_center"Point of the box placed at 'position'. (base_center / center / corner).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Solid Cylinder

tb.ops.solid.create_cylinder(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    radius: float = 0.5,
    height: float = 1.0,
    position: Vec3Like = [0.0, 0.0, 0.0],
    rotation: Vec3Like = [0.0, 0.0, 0.0],
    anchor: Literal["base_center", "center"] = "base_center",
    name: str = ...,
    staged: str = "",
) -> Result

Create a B-rep cylinder standing on its base along the local Y axis.

  • Operation solid.create_cylinder
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
radiusfloat0.5Radius. (scene units).
heightfloat1.0Height along local Y. (scene units).
positionVec3Like[0.0, 0.0, 0.0]World position in 'unit'.
rotationVec3Like[0.0, 0.0, 0.0]XYZ Euler rotation in degrees.
anchorLiteral["base_center", "center"]"base_center"Point of the cylinder placed at 'position'. (base_center / center).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Solid Sphere

tb.ops.solid.create_sphere(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    radius: float = 0.5,
    position: Vec3Like = [0.0, 0.0, 0.0],
    name: str = ...,
    staged: str = "",
) -> Result

Create a B-rep sphere centered at 'position'.

  • Operation solid.create_sphere
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
radiusfloat0.5Radius. (scene units).
positionVec3Like[0.0, 0.0, 0.0]World position in 'unit'.
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Delete Faces

tb.ops.solid.delete_faces(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    faces: Any,
    staged: str = "",
) -> Result

Remove the picked faces and heal the gap from the neighbours (remove fillets, holes, bosses).

  • Operation solid.delete_faces
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to edit.
facesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Difference

tb.ops.solid.difference(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    tools: Sequence[ObjectRef],
    tool_mode: Literal["delete", "hide", "keep"] = "delete",
    staged: str = "",
) -> Result

Cut the tool solids out of the target solid.

  • Operation solid.difference
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredTarget solid; it keeps its object and receives the result.
toolsSequence[ObjectRef]requiredTool solids combined with the target, in order.
tool_modeLiteral["delete", "hide", "keep"]"delete"What happens to the tool objects. (delete / hide / keep).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Draft Faces

tb.ops.solid.draft(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    faces: Any,
    angle: float = 3.0,
    neutral_origin: Vec3Like = [0.0, 0.0, 0.0],
    pull_direction: Vec3Like = [0.0, 1.0, 0.0],
    staged: str = "",
) -> Result

Tilt the picked faces by an angle about the neutral plane (mould draft).

  • Operation solid.draft
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to draft.
facesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
anglefloat3.0Draft angle. (degrees; -89…89).
neutral_originVec3Like[0.0, 0.0, 0.0]A point on the neutral plane, where faces keep their place (world, 'unit').
pull_directionVec3Like[0.0, 1.0, 0.0]Mould pull direction; also the neutral plane's normal (world).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Export IGES

tb.ops.solid.export_iges(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    nodes: Sequence[ObjectRef] = ...,
) -> Result

Export solids as IGES text, returned as 'iges'.

  • Operation solid.export_iges
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodesSequence[ObjectRef]—Solid objects to export (default all solids).

Export STEP

tb.ops.solid.export_step(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    nodes: Sequence[ObjectRef] = ...,
) -> Result

Export solids and sheets as STEP (AP242) text, returned as 'step'.

  • Operation solid.export_step
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodesSequence[ObjectRef]—Solid objects to export (default all solids).

Extrude Curve

tb.ops.solid.extrude_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    spline_ids: Sequence[int] = ...,
    regions: Any = ...,
    consume_curve: bool = False,
    boolean: Literal["new", "auto", "join", "cut", "through"] = "new",
    start: float = 0.0,
    end: float = 1.0,
    draft: float = 0.0,
    name: str = ...,
    staged: str = "",
) -> Result

Extrude the closed splines of a curve object into a solid. Loops inside loops become holes automatically.

  • Operation solid.extrude_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredCurve object holding the closed profile splines.
spline_idsSequence[int]—Profile splines (stable ids); default all closed splines.
regionsAny—Explicit regions [{outer:id, holes:[ids]}] instead of automatic nesting.
consume_curveboolFalseDelete the curve object once it became a solid (drawn profiles pulled into solids).
booleanLiteral["new", "auto", "join", "cut", "through"]"new"Combine with the solid the profile is drawn on. (new / auto / join / cut / through).
startfloat0.0Start along the profile normal. (scene units).
endfloat1.0End along the profile normal. (scene units).
draftfloat0.0Taper angle; positive grows the profile. (degrees; -89…89).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Extrude Faces

tb.ops.solid.extrude_faces(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    faces: Any,
    distance: float = 0.1,
    staged: str = "",
) -> Result

Extrude the picked planar faces: positive distances add material, negative cut a pocket.

  • Operation solid.extrude_faces
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to edit.
facesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
distancefloat0.1Signed distance along the face normals. (scene units).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Fillet

tb.ops.solid.fillet(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    edges: Any,
    radius: float = 0.05,
    chain: bool = True,
    staged: str = "",
) -> Result

Round the picked edges with a constant radius.

  • Operation solid.fillet
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to round.
edgesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
radiusfloat0.05Fillet radius. (scene units).
chainboolTrueContinue along edges that meet the picked ones tangentially (a rounded rim as one chain).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Variable Fillet

tb.ops.solid.fillet_variable(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    edges: Any,
    start_radius: float = 0.02,
    end_radius: float = 0.1,
    radii: Any = ...,
    smooth: bool = True,
    start_near: Vec3Like = [0.0, 0.0, 0.0],
    staged: str = "",
) -> Result

Round one straight edge with a radius that changes from one end to the other.

  • Operation solid.fillet_variable
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to round.
edgesAnyrequiredThe straight edge to round (the first pick is used).
start_radiusfloat0.02Radius at the start end. (scene units).
end_radiusfloat0.1Radius at the other end. (scene units).
radiiAny—Radii between the ends: [[position 0..1, radius], ...] (radius in 'unit').
smoothboolTrueBlend the radius smoothly through the points.
start_nearVec3Like[0.0, 0.0, 0.0]A point nearest the end that takes the start radius (world, 'unit').
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Mesh → Solid

tb.ops.solid.from_mesh(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    route: Literal["auto", "faceted", "planar", "primitive"] = "faceted",
    tolerance: float = 0.0,
    merge_angle: float = 0.5,
    keep_mesh: bool = True,
    name: str = ...,
    staged: str = "",
) -> Result

Turn a closed polygon mesh into a solid, ready for booleans and fillets: exact facets, flat regions snapped to fitted planes, or an exact sphere or cylinder fitted to the whole mesh. Fitted routes report their measured deviation and refuse beyond the tolerance. The first face supplies the base material.

  • Operation solid.from_mesh
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredClosed mesh object to convert.
routeLiteral["auto", "faceted", "planar", "primitive"]"faceted"How the solid is built. Recommended picks the route the mesh analysis suggests (solid.analyze_mesh); the dialog starts there. (auto / faceted / planar / primitive).
tolerancefloat0.0Largest deviation a fitted route may introduce; 0 means 0.1% of the mesh size. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
merge_anglefloat0.5Merge exactly coplanar neighbouring facets; small bends keep their original shape. (degrees; 0…20).
keep_meshboolTrueKeep the mesh object (hidden) next to the new solid.
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Helix Sweep

tb.ops.solid.helix_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    spline_ids: Sequence[int] = ...,
    regions: Any = ...,
    axis_origin: Vec3Like = [0.0, 0.0, 0.0],
    axis_direction: Vec3Like = [0.0, 1.0, 0.0],
    pitch: float = 0.2,
    turns: float = 3.0,
    name: str = ...,
    staged: str = "",
) -> Result

Sweep the closed profile curve along a helix about an axis (springs, threads).

  • Operation solid.helix_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredCurve object holding the closed profile splines.
spline_idsSequence[int]—Profile splines (stable ids); default all closed splines.
regionsAny—Explicit regions [{outer:id, holes:[ids]}] instead of automatic nesting.
axis_originVec3Like[0.0, 0.0, 0.0]A point on the helix axis (world, 'unit').
axis_directionVec3Like[0.0, 1.0, 0.0]Helix axis direction (world).
pitchfloat0.2Rise per turn along the axis. (scene units).
turnsfloat3.0Number of turns. (0.1…200).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Import IGES Solids

tb.ops.solid.import_iges(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    text: str,
    name: str = ...,
    staged: str = "",
) -> Result

Import the closed solids of an IGES file (its text) as B-rep solids.

  • Operation solid.import_iges
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
textstrrequiredIGES file contents.
namestr—Base name of the new objects.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Import STEP Solids

tb.ops.solid.import_step(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    text: str,
    name: str = ...,
    staged: str = "",
) -> Result

Import complete valid solids and sheets from a STEP file as editable B-rep geometry.

  • Operation solid.import_step
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
textstrrequiredSTEP file contents (ISO 10303-21).
namestr—Base name of the new objects.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Imprint Curve

tb.ops.solid.imprint_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef = ...,
    curve: ObjectRef,
    faces: Any = ...,
    direction: Vec3Like = ...,
    consume_curve: bool = True,
    staged: str = "",
) -> Result

Imprint curves drawn over a solid's faces, flat or curved: closed curves, loops inside loops and curves running across a face divide it, so each drawn region becomes its own face, ready to pick and push/pull (out joins, in cuts).

  • Operation solid.imprint_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRef—Solid to imprint (default the solid the curves are drawn on).
curveObjectRefrequiredCurve object with the splines (open or closed), drawn over the solid.
facesAny—Faces to imprint (topology ids or [x, y, z] points); default the faces the curves are drawn over.
directionVec3Like—Direction to project curves along when they lie on one straight line (world); other curves project along the normal of their plane.
consume_curveboolTrueDelete the curve object once it is imprinted.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Intersection

tb.ops.solid.intersection(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    tools: Sequence[ObjectRef],
    tool_mode: Literal["delete", "hide", "keep"] = "delete",
    staged: str = "",
) -> Result

Keep only the volume the target shares with the tool solids.

  • Operation solid.intersection
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredTarget solid; it keeps its object and receives the result.
toolsSequence[ObjectRef]requiredTool solids combined with the target, in order.
tool_modeLiteral["delete", "hide", "keep"]"delete"What happens to the tool objects. (delete / hide / keep).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Loft Curves

tb.ops.solid.loft_curves(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    nodes: Sequence[ObjectRef],
    name: str = ...,
    staged: str = "",
) -> Result

Loft a solid through two or more closed section curves, in order.

  • Operation solid.loft_curves
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodesSequence[ObjectRef]requiredTwo or more curve objects, in loft order; each contributes its first closed spline.
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Mirror Solid

tb.ops.solid.mirror(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    plane_origin: Vec3Like = [0.0, 0.0, 0.0],
    plane_normal: Vec3Like = [1.0, 0.0, 0.0],
    merge: bool = True,
    staged: str = "",
) -> Result

Mirror the solid across a plane, optionally merging it with the original.

  • Operation solid.mirror
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to mirror.
plane_originVec3Like[0.0, 0.0, 0.0]A point on the mirror plane (world, 'unit').
plane_normalVec3Like[1.0, 0.0, 0.0]Mirror plane normal (world).
mergeboolTrueUnion the mirror image with the original.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Offset Faces

tb.ops.solid.offset_faces(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    faces: Any,
    distance: float = 0.1,
    staged: str = "",
) -> Result

Push or pull the picked faces along their normals; neighbouring faces follow (planes, cylinders, cones, spheres and tori).

  • Operation solid.offset_faces
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to edit.
facesAnyrequiredPicked edges: topology ids from the display mesh, or [x,y,z] world points (in 'unit') naming the nearest edge.
distancefloat0.1Signed distance along the face normals. (scene units).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Patch

tb.ops.solid.patch_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef = ...,
    spline_ids: Sequence[int] = ...,
    regions: Any = ...,
    mode: Literal["planar", "smooth"] = "planar",
    nodes: Sequence[ObjectRef] = ...,
    name: str = ...,
    staged: str = "",
) -> Result

Fill a planar closed boundary, or span a smooth surface across a spatial closed boundary or four boundary splines. The first listed boundary spline supplies the base material.

  • Operation solid.patch_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRef—Boundary curve object; smooth surfaces can instead name several objects in 'nodes'.
spline_idsSequence[int]—Profile splines (stable ids); default all closed splines.
regionsAny—Explicit regions [{outer:id, holes:[ids]}] instead of automatic nesting.
modeLiteral["planar", "smooth"]"planar"Flat fill keeps profile holes. Smooth surface spans one closed boundary or four open boundary splines in 3D. (planar / smooth).
nodesSequence[ObjectRef]—Boundary curve objects for a smooth surface; default the curve in 'node'. The first listed boundary supplies placement and base material.
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Reference Solid Topology

tb.ops.solid.reference_topology(
    *,
    node: ObjectRef,
    faces: Any = ...,
    edges: Any = ...,
) -> Result

Durable references to picked faces and edges: their topology ids plus a geometric signature (body-local), for solid.resolve_references after later edits.

  • Operation solid.reference_topology
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredThe solid object.
facesAny—Faces: topology ids or body-local [x, y, z] points.
edgesAny—Edges: topology ids or body-local [x, y, z] points.

Resolve Solid References

tb.ops.solid.resolve_references(*, node: ObjectRef, references: Any) -> Result

Find what earlier references (solid.reference_topology) name on the solid now: survives, reattached (with the current id), ambiguous (with candidates) or deleted.

  • Operation solid.resolve_references
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredThe solid object.
referencesAnyrequiredReferences as solid.reference_topology returned them.

Revolve Curve

tb.ops.solid.revolve_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    spline_ids: Sequence[int] = ...,
    regions: Any = ...,
    axis_origin: Vec3Like = [0.0, 0.0, 0.0],
    axis_direction: Vec3Like = [0.0, 1.0, 0.0],
    angle: float = 360.0,
    name: str = ...,
    staged: str = "",
) -> Result

Revolve the closed splines of a curve object about an axis in their plane.

  • Operation solid.revolve_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredCurve object holding the closed profile splines.
spline_idsSequence[int]—Profile splines (stable ids); default all closed splines.
regionsAny—Explicit regions [{outer:id, holes:[ids]}] instead of automatic nesting.
axis_originVec3Like[0.0, 0.0, 0.0]A point on the axis (world, 'unit').
axis_directionVec3Like[0.0, 1.0, 0.0]Axis direction (world).
anglefloat360.0Revolution angle. (degrees; -360…360).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Shell

tb.ops.solid.shell(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    faces: Any = [],
    thickness: float = 0.05,
    direction: Literal["inward", "outward", "both"] = "inward",
    staged: str = "",
) -> Result

Hollow a solid with walls inside, outside or equally around its original skin. Pick faces to open them, or leave faces empty for a closed cavity. Thickness is the total wall thickness; opening planes stay in place.

  • Operation solid.shell
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to hollow.
facesAny[]Faces to remove: topology ids or [x,y,z] world points. Empty keeps a closed hollow solid.
thicknessfloat0.05Total wall thickness; Both places half on each side of the original skin. (scene units).
directionLiteral["inward", "outward", "both"]"inward"Where the wall is placed relative to the original skin. (inward / outward / both).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Split Solid

tb.ops.solid.split(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    by: Literal["plane", "face", "solid"] = "plane",
    tool: ObjectRef = ...,
    tool_face: Any = ...,
    tool_mode: Literal["keep", "hide", "delete"] = "hide",
    plane_origin: Vec3Like = [0.0, 0.0, 0.0],
    plane_normal: Vec3Like = [0.0, 1.0, 0.0],
    staged: str = "",
) -> Result

Cut the solid into pieces with a plane, the face of another solid (its surface extended) or another solid; each piece becomes its own object.

  • Operation solid.split
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to split.
byLiteral["plane", "face", "solid"]"plane"What cuts the solid. (plane / face / solid).
toolObjectRef—The solid whose face, or which itself, cuts (by face / by solid).
tool_faceAny—The tool's face (topology id or [x, y, z] world point) whose surface cuts (by face).
tool_modeLiteral["keep", "hide", "delete"]"hide"What happens to the tool solid. (keep / hide / delete).
plane_originVec3Like[0.0, 0.0, 0.0]A point on the cutting plane (world, 'unit').
plane_normalVec3Like[0.0, 1.0, 0.0]Cutting plane normal (world).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Sweep Curve

tb.ops.solid.sweep_curve(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    spline_ids: Sequence[int] = ...,
    regions: Any = ...,
    path: ObjectRef,
    path_spline: int = ...,
    name: str = ...,
    staged: str = "",
) -> Result

Sweep a closed profile curve along a path curve.

  • Operation solid.sweep_curve
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredCurve object holding the closed profile splines.
spline_idsSequence[int]—Profile splines (stable ids); default all closed splines.
regionsAny—Explicit regions [{outer:id, holes:[ids]}] instead of automatic nesting.
pathObjectRefrequiredCurve object whose first spline is the path.
path_splineint—Path spline id (default the first spline).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Thicken

tb.ops.solid.thicken(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    mode: Literal["oneSide", "symmetric", "twoSides"] = "oneSide",
    thickness: float = 0.05,
    second_thickness: float = 0.0,
    staged: str = "",
) -> Result

Thicken a sheet on one side, equally about its original skin, or by independent distances on both sides.

  • Operation solid.thicken
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSheet (or solid) to thicken.
modeLiteral["oneSide", "symmetric", "twoSides"]"oneSide"One side grows along the normal; Symmetric splits the total thickness equally; Two sides uses independent distances. (oneSide / symmetric / twoSides).
thicknessfloat0.05First side distance, or total thickness in Symmetric mode. A negative value reverses which side is first. (scene units).
second_thicknessfloat0.0Second side distance, opposite the first. Only used in Two sides mode; must be nonnegative. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Solid → Curves

tb.ops.solid.to_curves(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    mode: Literal["edges", "boundary", "section"] = "edges",
    edges: Any = ...,
    faces: Any = ...,
    plane_origin: Vec3Like = [0.0, 0.0, 0.0],
    plane_normal: Vec3Like = [0.0, 1.0, 0.0],
    name: str = ...,
    staged: str = "",
) -> Result

Extract curves from a solid: its edges (lines and NURBS kept exact), the boundary loops of picked faces or of a sheet, or the section loops where a plane cuts it.

  • Operation solid.to_curves
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to extract curves from.
modeLiteral["edges", "boundary", "section"]"edges"Edges: one curve per edge. Face boundaries: closed loops round the picked faces, or the open boundary of a sheet. Section: the loops where a plane cuts the solid. (edges / boundary / section).
edgesAny—Edges to extract (topology ids or [x, y, z] points); default every edge.
facesAny—Faces whose boundary loops to extract (topology ids or [x, y, z] points); default the open boundary of a sheet.
plane_originVec3Like[0.0, 0.0, 0.0]A point on the section plane (world, 'unit').
plane_normalVec3Like[0.0, 1.0, 0.0]Section plane normal (world).
namestr—Name of the new object (default the next free name).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Solid → Mesh

tb.ops.solid.to_mesh(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    tolerance: float = 0.0005,
    keep_solid: bool = True,
    keep_linked: bool = True,
    sharp_edges: bool = True,
    staged: str = "",
) -> Result

Convert a solid into a polygon mesh at a chosen tolerance. Each mesh face remembers its B-rep face ('brep_face'), B-rep edges become sharp edges, and a linked mesh re-tessellates whenever the solid changes until it is baked.

  • Operation solid.to_mesh
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredSolid to convert.
tolerancefloat0.0005Maximum distance from the mesh to the true surface. (scene units).
keep_solidboolTrueKeep the solid object (hidden) next to the new mesh. Turn off to replace this object's geometry while keeping its hierarchy and animation.
keep_linkedboolTrueThe mesh re-tessellates whenever the solid changes, until it is baked (solid.bake_mesh). Off makes an independent mesh.
sharp_edgesboolTrueMark the edges between B-rep faces as sharp edges.
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.

Union

tb.ops.solid.union(
    *,
    unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
    node: ObjectRef,
    tools: Sequence[ObjectRef],
    tool_mode: Literal["delete", "hide", "keep"] = "delete",
    staged: str = "",
) -> Result

Add the tool solids to the target solid.

  • Operation solid.union
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit of the length parameters and picked points. (m / cm / mm / inch / foot).
nodeObjectRefrequiredTarget solid; it keeps its object and receives the result.
toolsSequence[ObjectRef]requiredTool solids combined with the target, in order.
tool_modeLiteral["delete", "hide", "keep"]"delete"What happens to the tool objects. (delete / hide / keep).
stagedstr""Token of a background kernel result (interactive tools); empty runs the kernel now.