GuiCommand | ||||||||
---|---|---|---|---|---|---|---|---|
|
The Part Sweep tool is used to create a face, a shell, or a solid shape from one or more profiles (cross-sections) projected along a path.
The Part Sweep tool is similar to Part Loft with the addition of a path to define the projection between profiles.
A solid sweep generated from a single profile (A) projected along a path (B)
- Press the '''Sweep...''' button. This opens the Sweep parameters in the Task panel.
- In the Available Profiles left column (previously Vertex/Edge/Wire/Face in v0.16), click on the element to be used as sweep profile, then click on the right arrow to place it in the Selected profiles right column (previously Sweep in v0.16). Repeat if more than one profile is desired. Use the up and down arrows to reorder the selected profiles.
- Click on the Sweep Path button, then choose either mode of selection:
- Single segment selection: select one or more contiguous edges in the 3D view (press CTRL for multiple selection) and click Done. The sweep will only be generated along the selected edges.
- Complete path selection: switch to the Model tab, select the 2D object to be used as path in the tree, switch back to the Task panel and click Done. The sweep will be generated along all the contiguous edges found in the 2D object.
- Define options Solid and Frenet.
- Click OK
-
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.
-
Path: can be a line (Edge) or series of connecting lines, wire or various Part Workbench primitives, Draft Workbench features or a Sketch. The path 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 path can either be an entire appropriate shape or an appropriate sub-component of a more advance shape (for example, an edge of a Part Box could be selected as the path). The path may be either open or closed and will thus create either an open or closed Sweep. A closed path such as a Part Circle will result in a closed Sweep. For example a Sweep of a smaller circle around a path 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 paths. (v0.20)
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.
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" 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.
- A vertex or point
- 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.
- For example
- vertex or point may only be used as the first and/or last profile in the list of profiles.
- Open or closed geometry profiles can not be mixed in one single Sweep
- 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.
- For example
- In one Sweep, all profiles (lines wires etc.) must be either open or closed.
- Draft Workbench features
- Draft Workbench features can be directly used as a profile in FreeCAD 0.14 or later.
- 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
- For example the following Draft features can be used as profiles in a Part Sweep
- Draft Workbench features can be directly used as a profile in FreeCAD 0.14 or later.
- 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 tool
- For example the following Part geometric primitives can be a valid profile
- Point (Vertex), Line (Edge)
- Helix, Spiral
- Circle, Ellipse
- Regular Polygon
- Plane (Face)
- For example the following Part geometric primitives can be a valid profile
- the profile can be a valid Part geometric primitive which can be created with the Part Primitives tool
- Since Sweep is often used to create threads for screws, you should see Thread for Screw Tutorial.
⏵ documentation index > Part > Part Sweep