Part Sweep: Difference between revisions

From FreeCAD Documentation
(Changed main image, added headers to "ventilate" the info and make it easier to read.)
No edit summary
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:17-->
{{Docnav
|[[Part_Loft|Loft]]
|[[Part_CompOffsetTools|CompOffsetTools]]
|[[Part_Module|Part]]
|IconL=Part_Loft.svg
|IconR=Part_CompOffsetTools.png
|IconC=Workbench_Part.svg
}}

<!--T:12-->
<!--T:12-->
{{GuiCommand
{{GuiCommand|Name=Part Sweep|MenuLocation=Part → Sweep...||Workbenches=[[Part Module|Part]]|SeeAlso=[[Part Loft|Part Loft]]}}
|Name=Part Sweep
|MenuLocation=Part → Sweep...
|Workbenches=[[Part_Module|Part]]
|SeeAlso=[[Part_Loft|Part Loft]]
}}

==Description== <!--T:21-->


==Description== <!--T:2-->
<!--T:2-->
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 [[Image:Part_Sweep.svg|24px]] [[Part Sweep|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.


<!--T:3-->
<!--T:3-->
The Part Sweep tool is similar to [[Part Loft|Part Loft]] with the addition of a path to define the projection between profiles.
The Part Sweep tool is similar to [[Image:Part_Loft.svg|24px]] [[Part Loft|Part Loft]] with the addition of a path to define the projection between profiles.


<!--T:13-->
<!--T:13-->
[[File:Part Sweep simple.png|thumb|left|500px|A solid sweep generated from a profile (A) projected along a path (B).]]{{clear}}
[[File:Part Sweep simple.png|none]]
''A solid sweep generated from a single profile (A) projected along a path (B).''


==Usage== <!--T:22-->
==How to use==

# Press the {{KEY|[[Image:Part_Sweep.png|16px]] '''Sweep'''}} button. This opens the Sweep parameters in the Tasks pane.
<!--T:16-->
# In the ''Available Profiles'' column, click on the element to be used as sweep profile, then click on the right arrow to place it in to the ''Selected profiles'' column. Repeat if more than one profile is desired. Use the up and down arrows to reorder the selected profiles.
# Press the {{KEY|[[Image:Part_Sweep.svg|16px]] '''Sweep'''}} button. This opens the Sweep parameters in the [[Task_panel|Task panel]].
# Click on the {{KEY|Sweep Path}} button then either:
# 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.
#* Select multiple edges for the path in the 3D view (press {{KEY|CTRL}} for multiple selection) and click on {{KEY|Done}}.
# Click on the {{KEY|Sweep Path}} button, then choose either mode of selection:
#* Switch to the Model tab, select the 2D object to be used as path in the tree, switch back to the Tasks pane and click on {{KEY|Done}}.
#* ''Single segment selection'': select one or more contiguous edges in the [[3D view]] (press {{KEY|CTRL}} for multiple selection) and click {{KEY|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|Task panel]] and click {{KEY|Done}}. The sweep will be generated along all the contiguous edges found in the 2D object.
# Define options [[#Solid|Solid]] and [[#Frenet|Frenet]].
# Define options [[#Solid|Solid]] and [[#Frenet|Frenet]].
# Click OK.
# Click {{Button|OK}}


<!--T:4-->
===Accepted geometry=== <!--T:4-->
===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 [[Part_Sweep#Profile limitations and complications|profile limitations and complications]], see below, however the profiles may come from the Part Workbench primitives, Draft Workbench features and Sketches.
* '''Profiles''': can be a point (vertex), line (Edge), wire or face. Edges and wires may be either open or closed. There are various [[Part_Sweep#Profile limitations and complications|profile limitations and complications]], see below, however the profiles may come from the Part Workbench primitives, Draft Workbench features and Sketches.


<!--T:5-->
<!--T:5-->
* '''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 Cube 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.
* '''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 [[Image:Part_Box.svg|24px]] [[Part Cube]] 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.



==Properties== <!--T:7-->
==Properties== <!--T:7-->
Line 42: Line 60:


===Transition=== <!--T:6-->
===Transition=== <!--T:6-->
"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 Tasks pane and can be found in properties after the Sweep has been created.
"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|Task panel]] and can be found in properties after the Sweep has been created.


==Profile limitations and complications== <!--T:9-->
==Profile limitations and complications== <!--T:9-->
Line 65: Line 83:
**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)
**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
*Part Workbench
**the profile can be a valid Part geometric primitive which can be created with the [[Part_CreatePrimitives|Part CreatePrimitives tool]]
**the profile can be a valid Part geometric primitive which can be created with the [[Part_Primitives|Part Primitives tool]]
***For example the following Part geometric primitives can be a valid profile
***For example the following Part geometric primitives can be a valid profile
****Point (Vertex), Line (Edge)
****Point (Vertex), Line (Edge)
Line 72: Line 90:
****Regular Polygon
****Regular Polygon
****Plane (Face)
****Plane (Face)



==Links== <!--T:15-->
==Links== <!--T:15-->
Line 78: Line 95:




<!--T:18-->

{{Docnav
|[[Part_Loft|Loft]]
|[[Part_CompOffsetTools|CompOffsetTools]]
|[[Part_Module|Part]]
|IconL=Part_Loft.svg
|IconR=Part_CompOffsetTools.png
|IconC=Workbench_Part.svg
}}


</translate>
</translate>
{{Part Tools navi{{#translation:}}}}

{{Userdocnavi{{#translation:}}}}
<languages/>

Revision as of 18:22, 27 November 2020

Part Sweep

Menu location
Part → Sweep...
Workbenches
Part
Default shortcut
None
Introduced in version
-
See also
Part Loft

Description

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

Usage

  1. Press the Sweep button. This opens the Sweep parameters in the Task panel.
  2. 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.
  3. 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.
  4. Define options Solid and Frenet.
  5. Click OK

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.
  • 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 Cube 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.

Properties

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.

Profile limitations and complications

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

Links