Direction of sweep with Part_Sweep

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
Post Reply
Simonski
Posts: 38
Joined: Wed Nov 24, 2021 11:31 am

Direction of sweep with Part_Sweep

Post by Simonski »

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?
Attachments
RectangleSweep.png
RectangleSweep.png (17.58 KiB) Viewed 903 times
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Direction of sweep with Part_Sweep

Post by adrianinsaval »

if you put your rectangle in the xz plane you will get the same result:
Captura de pantalla 2021-12-07 084109.png
Captura de pantalla 2021-12-07 084109.png (9.52 KiB) Viewed 849 times
AFAIK there's no need to guess a direction, it just always gets swept across the entire length of the guide
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Direction of sweep with Part_Sweep

Post by Shalmeneser »

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.
Simonski
Posts: 38
Joined: Wed Nov 24, 2021 11:31 am

Re: Direction of sweep with Part_Sweep

Post by Simonski »

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
My example wasn't the best, the direction is important if the profile is not symmetrical.
Attachments
ChamferredRectangleSweep.png
ChamferredRectangleSweep.png (27.46 KiB) Viewed 811 times
User avatar
papyblaise
Veteran
Posts: 7870
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Direction of sweep with Part_Sweep

Post by papyblaise »

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
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Direction of sweep with Part_Sweep

Post by Shalmeneser »

Je dirais même mieux,

The chamfer is next/far to the path, and it' like that for everywhere.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Direction of sweep with Part_Sweep

Post by adrianinsaval »

Simonski wrote: Tue Dec 07, 2021 12:14 pm
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
My example wasn't the best, the direction is important if the profile is not symmetrical.
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 revolution
Post Reply