AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Sweep ​

Carry a profile along a path. Add a second rail to steer how it turns.

Surface Sweep using the scale table 0:1, 0.5:1.6, 1:0.7: the section grows at mid-path and narrows at the end.
Prism result capture. Surface Sweep using the scale table 0:1, 0.5:1.6, 1:0.7: the section grows at mid-path and narrows at the end. View full size
A small profile and a tube following a bent centerline.
Concept diagram. Sweep carries a profile along a path. The path controls where the result bends. View full size

0.4 development branch

See the illustrated 0.4 guide for workflows and current limits. The settings below were refreshed from the development branch.

In the app

Click one edge of the profile and the connected chain is taken whole (Ctrl-click for a single edge); same for the path. The dropdown next to each pick switches between single edges and connected, tangent or partial chains. Add a second rail to steer how the profile turns; it should touch the profile at the start.

How to use ​

  1. Choose Sweep. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Profile (curve or sketch, face, edge, one or more).
  3. Pick Path (curve, edge, one or more).
  4. Pick Second rail (optional) (curve, edge, one or more), optional.
  5. Pick Guide curve: the profile grows and shrinks with its distance (optional) (curve, edge, one or more), optional.
  6. Pick Second guide curve (optional) (curve, edge, one or more), optional.
  7. Adjust the settings and check the preview in the viewport.
  8. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Between two guidesResize evenlyResize evenly, Stretch between the guides
Profile orientationFollow the pathFollow the path, Keep parallel (no turning), Keep upright (Z stays up)
Scale at the end10.01 to 100
Scale at the start10.01 to 100
Scale along the path (optional)Text
Twist along the path0 °-3600 to 3600 °

Script it ​

Command name sweep_surface. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("sweep_surface", slots={"Profile": [...], "Path": [...]}, between_two_guides="Resize evenly", profile_orientation="Follow the path")