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