swept_handle

Sweep a tube along a quadratic-Bezier curve to create watertight C-shaped handles.

Updated Jun 3, 2026
One-click install
npx skills add https://github.com/Xia12121/hybrid-design-agent --skill swept-handle
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swept_handle
Source: https://github.com/Xia12121/hybrid-design-agent/tree/main/skills/core/swept_handle
Command: npx skills add https://github.com/Xia12121/hybrid-design-agent --skill swept-handle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the common issue of build failures in 3D modeling due to the hand-coding of handles as sweeps, which can lead to misordered arguments, unexpected behaviors, and non-manifold geometries.

Core Features & Use Cases

  • Automated Handle Creation: Generates a smooth, watertight C-shaped handle by sweeping a tube along a quadratic-Bezier curve.
  • Pre-Embedded Ends: Ensures the handle ends are pre-embedded into the body wall for a seamless union.
  • Use Case: For designing cups, mugs, or baskets, where a handle with a specific profile and size is required without the need for manual modeling.

Quick Start

Use the swept_handle skill to create a handle for a cup with the following parameters: attach_point=(40, 0, 47.5), out_normal=(1, 0, 0), vertical_span_mm=55, projection_mm=35, section_diameter_mm=12.

Frequently Asked Questions about swept_handle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a watertight handle in build123d without non-manifold geometry errors?▼

To create a watertight handle in build123d without non-manifold geometry errors, sweep a tube along a quadratic-Bezier curve. This prevents the misordered arguments and unexpected behaviors common in hand-coding sweeps, ensuring a smooth, non-self-intersecting shape.

Why does my 3D modeling handle sweep fail to union seamlessly with the cup body?▼

Your handle sweep fails to union seamlessly because the ends are not properly integrated. Pre-embedding the handle ends into the body wall ensures a seamless union and prevents build failures associated with manual modeling.

What parameters do I need to generate a C-shaped grip for a 3D model?▼

To generate a C-shaped grip, define the attach_point, out_normal, vertical_span_mm, projection_mm, and section_diameter_mm. These parameters control the quadratic-Bezier curve path and tube profile to sweep the exact handle shape required.

Does build123d support automated loop creation for mugs and baskets?▼

Yes, build123d supports automated loop creation for mugs and baskets by sweeping a tube along a quadratic-Bezier curve. This generates a smooth, watertight C-shaped handle tailored to your specific profile and size requirements.

What is the best way to model a smooth C-shaped loop in 3D modeling?▼

The best way to model a smooth C-shaped loop is by sweeping a tube along a quadratic-Bezier curve. This ensures a watertight, non-self-intersecting geometry while pre-embedding the ends for a seamless union with the main body.