I have an arc in the XY plane and a small rectangle in the XZ plane, as shown in the first image. I used the Part Sweep tool to sweep the rectangle along the arc to generate the horseshoe shape. The rectangle appears to have been swept clockwise (looking from above) along the arc.
If I then move the rectangle along the X axis to the other end of the horseshoe (second image), I get exactly the same sweep, as though this time the rectangle has been swept anti-clockwise along the arc.
How exactly does the Part Sweep tool determine the direction of sweep?
Direction of sweep with Part_Sweep
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Direction of sweep with Part_Sweep
- Attachments
-
- RectangleSweep.png (17.58 KiB) Viewed 915 times
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Direction of sweep with Part_Sweep
if you put your rectangle in the xz plane you will get the same result:
AFAIK there's no need to guess a direction, it just always gets swept across the entire length of the guide- Shalmeneser
- Veteran
- Posts: 9591
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: Direction of sweep with Part_Sweep
The rectangle plane cut the path in one point.
You keep the relative position between the rectangle and the point for all the points of the path.
btw, a half revolution does the same in your example.
You keep the relative position between the rectangle and the point for all the points of the path.
btw, a half revolution does the same in your example.
Re: Direction of sweep with Part_Sweep
My example wasn't the best, the direction is important if the profile is not symmetrical.adrianinsaval wrote: ↑Tue Dec 07, 2021 11:43 am AFAIK there's no need to guess a direction, it just always gets swept across the entire length of the guide
- Attachments
-
- ChamferredRectangleSweep.png (27.46 KiB) Viewed 823 times
- papyblaise
- Veteran
- Posts: 8026
- Joined: Thu Jun 13, 2019 4:28 pm
- Location: France
Re: Direction of sweep with Part_Sweep
Well no, it depends on the center of rotation:
in one case the chamfer "facing to" the Z axis, in the other, it turns its back to it
in one case the chamfer "facing to" the Z axis, in the other, it turns its back to it
- Shalmeneser
- Veteran
- Posts: 9591
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: Direction of sweep with Part_Sweep
Je dirais même mieux,
The chamfer is next/far to the path, and it' like that for everywhere.
The chamfer is next/far to the path, and it' like that for everywhere.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Direction of sweep with Part_Sweep
Is not about clockwise on counterclockwise, it's the orientation of your profile that matters there, and as was pointed out before if the path is just a circle it's probably better to use a revolutionSimonski wrote: ↑Tue Dec 07, 2021 12:14 pmMy example wasn't the best, the direction is important if the profile is not symmetrical.adrianinsaval wrote: ↑Tue Dec 07, 2021 11:43 am AFAIK there's no need to guess a direction, it just always gets swept across the entire length of the guide