Part Sweep

Description
The Part Sweep command is used to create a face (or a sequence of faces), a shell, or a solid shape from one or more profiles (cross-sections) distributed along a spine.

The Part Sweep command is similar to Part Loft with the addition of a spine to define the distribution between profiles.



Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) The Sweep dialog opens in the Task panel.
 * 5) In the Available Profiles list on the left click on the element to be used as sweep profile and click on the right arrow to place it in the Selected profiles list on the right.
 * Repeat if more than one profile is desired and use the up and down arrows to reorder the selected profiles.
 * 1) Click on the  button, then choose either mode of selection:
 * 2) * Single segment selection: select one or more contiguous edges in the 3D view (press for multiple selection) and click . The sweep will only be generated along the selected edges.
 * 3) * Complete path selection: switch to the Model tab, select the 2D object to be used as spine in the tree, switch back to the Task panel and click . The sweep will be generated along all the contiguous edges found in the 2D object.
 * 4) Define options Solid and Frenet.
 * 5) Click

Accepted geometry

 * Profiles: can be a point (vertex), line (Edge), wire or face. Edges and wires may be either open or closed. There are various profile limitations and complications, see below, however the profiles may come from the Part Workbench primitives, Draft Workbench features and Sketches.


 * Spine: can be a line (Edge) or series of connected lines, wire or various Part Workbench primitives, Draft Workbench features or a Sketch. The spine is often selected directly from the main model window, however it can also be selected from the Tree view (Model Tab of Combo View). The spine can either be an entire appropriate shape or an appropriate sub-component of a more advance shape (for example, an edge of a [[Image:Part_Box.svg|16px]] Part Box could be selected as the spine). The spine may be either open or closed and will thus create either an open or closed Sweep. A closed spine such as a Part Circle will result in a closed Sweep. For example a Sweep of a smaller circle around a spine of a larger circle will create a torus.


 * App Link objects linked to the appropriate object types and App Part containers with the appropriate visible objects inside can also be used as profiles and spines.

Properties
See also: Property editor.

A Part Sweep object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

 * : lists the sections used.
 * : spine (path) to sweep along.
 * : true or false (default). True creates a Solid.
 * : true or false (default). True uses Frenet algorithm.
 * : transition mode. Options are Transformed, Right corner or Round corner.

Solid
If "Solid" is set to "true", FreeCAD creates a solid, provided the profiles are of closed geometry; if set to "false", FreeCAD creates a face or (if more than one face) a shell for either open or closed profiles.

Frenet


The "Frenet" property controls how the profile orientation changes as it follows along the sweep path. If "Frenet" is "false", the orientation of the profile is kept consistent from point to point. The resulting shape has the minimum possible twisting. Unintuitively, when a profile is swept along a helix, this results in the orientation of the profile slowly creep (rotate) as it follows the helix. Setting "Frenet" to true prevents such a creep.

If "Frenet" is "true" the orientation of the profile is computed basing on local curvature and tangency vectors of the path. This keeps the orientation of the profile consistent when sweeping along a helix (because curvature vector of a straight helix is always pointing to its axis). However, when path is not a helix, the resulting shape can have strange looking twists sometimes. For more information, see Frenet Serret formulas.

Transition
"Transition" sets the transition style of the Sweep at a joint in the path, if the path does not define the corner transition (for example where the path is a wire). The property is not exposed in the Task panel and can be found in properties after the Sweep has been created.

Vertex or point
A vertex or point may only be used as the first and/or last profile in the list of profiles. For example:
 * you can not Sweep from a circle to a point, to a ellipse.
 * However you could Sweep from a point to a circle to an ellipse to another point.

Profiles
In one Sweep, all profiles (lines wires etc.) must be either open or closed. For example:
 * FreeCAD can not Sweep between one Part Circle and one default Part Line.

Draft Workbench features
Draft Workbench features can be directly used as a profile. For example the following Draft features can be used as profiles in a Part Sweep:
 * Draft Polygon.
 * Draft Point, Line, Wire,
 * Draft B-spline, Bezier Curve
 * Draft Circle, Ellipse, Rectangle

PartDesign Sketches

 * The profile may be created with a sketch. However only a valid sketch will be shown in the list to be available for selection.
 * The sketch must contain only one open or closed wire or line (can be multiple lines, if those lines are all connected as they are then a single wire)

Part Workbench
The profile can be a valid Part geometric primitive which can be created with the Part Primitives command. For example the following Part geometric primitives can be a valid profile:
 * Point (Vertex), Line (Edge)
 * Helix, Spiral
 * Circle, Ellipse
 * Regular Polygon
 * Plane (Face)

Links

 * Since Sweep is often used to create threads for screws, you should see Thread for Screw Tutorial.