Local_CS Frenet-Serret wrong axes direction.

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Tato3d
Posts: 95
Joined: Wed Apr 17, 2019 9:08 am

Local_CS Frenet-Serret wrong axes direction.

Post by Tato3d »

Hello!

I'm having a look at the create new coordinate system tool in Part Desing workbench and I think that for the Frenet attachments the direction of the tangential, normal and binormal axes is not correct.

If I remember correctly these axes have the following functions:

Tangential = motion direction of the particle (map path parameter value 0 to 1) along the path (Spline).

Normal = curvature direction of the particle, always looking at the center of the osculating circle. Not to be confused with the normal of a plane.

Binormal = twist direction of the particle, perpendicular direction to the normal and tangential axes.


In the Local_CS Frenet NBT image the directions of the tangential (Z), normal (N) and binormal (Y) axes are not correct.
Frenet-Serret wrong axes direction
Frenet-Serret wrong axes direction
local CS Frenet NBT.png (214.85 KiB) Viewed 2300 times
I leave also what I suppose must be the correct directions of the axes in the Handmade Frenet NBT image, a file with a simulation (Frenet NB motion) and a little program (movimiento.FCmacro) for you to have a look at it.
correct directions of the axes
correct directions of the axes
Frenet NBT handmade.png (214.41 KiB) Viewed 2300 times
Sorry for my poor english.

Edit to add FreeCAD info.

OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Spain (es_ES)
Attachments
movimiento.FCMacro
python macro
(238 Bytes) Downloaded 41 times
Frenet NB motion.FCStd
Frenet tangential motion
(20.51 KiB) Downloaded 60 times
Last edited by Tato3d on Sat Jan 04, 2020 6:38 pm, edited 1 time in total.
Si eres nuevo en Part Desing y no te aclaras con los planos de referencia te dejo unos tutoriales que tengo en youtube por aqui.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Local_CS Frenet-Serret wrong axes direction.

Post by Kunda1 »

Please add you About info to the original post (please don't screenshot the dialog). thank you.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Local_CS Frenet-Serret wrong axes direction.

Post by UR_ »

Screenshot 002.png
Screenshot 002.png (10.98 KiB) Viewed 2265 times

Only NBT ... :relieved:
Tato3d
Posts: 95
Joined: Wed Apr 17, 2019 9:08 am

Re: Local_CS Frenet-Serret wrong axes direction.

Post by Tato3d »

Kunda1 wrote: Sun Dec 29, 2019 2:08 pm Please add you About info to the original post (please don't screenshot the dialog). thank you.
I'm sorry. I forgot :oops: .

OS: Ubuntu 18.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Spain (es_ES)
Si eres nuevo en Part Desing y no te aclaras con los planos de referencia te dejo unos tutoriales que tengo en youtube por aqui.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Local_CS Frenet-Serret wrong axes direction.

Post by UR_ »

DeepSOIC wrote: :bell:
Any explanations about this?
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Local_CS Frenet-Serret wrong axes direction.

Post by DeepSOIC »

I designed attachment modes to be used directly as sketch attachment. These flipped axes usually gave more convenient sketching orientations. Sorry about this mess. Fixing it now is quite tricky, as just fixing the code will break projects where this attachment mode is used.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Local_CS Frenet-Serret wrong axes direction.

Post by UR_ »

DeepSOIC wrote: Mon Jan 06, 2020 7:40 pm ... as just fixing the code will break projects ...

What about introducing three new mathematical correct modes
e.g. mNBT, mTNB, mTBN
and preserving sketcher existing convenience modes NB, TN, TB.

Therefore user doesn't break old files, but has a possibility to choose an appropriate attachment mode, if mathematical correctness is preferred.
Also he can use old "sketcher convenience modes" in new projects too

Screenshot 004.png
Screenshot 004.png (20.43 KiB) Viewed 2036 times
Tato3d
Posts: 95
Joined: Wed Apr 17, 2019 9:08 am

Re: Local_CS Frenet-Serret wrong axes direction.

Post by Tato3d »

DeepSOIC wrote: Mon Jan 06, 2020 7:40 pm I designed attachment modes to be used directly as sketch attachment. These flipped axes usually gave more convenient sketching orientations. Sorry about this mess. Fixing it now is quite tricky, as just fixing the code will break projects where this attachment mode is used.
Okay, now I know because the tangential and normal axes are reversed.
This also happens with normal to edge attachment.

I understand that in order not to break compativity it will stay that way.

Thank you for the explanation!!!!!!!
Si eres nuevo en Part Desing y no te aclaras con los planos de referencia te dejo unos tutoriales que tengo en youtube por aqui.
galou_breizh
Posts: 437
Joined: Wed Sep 15, 2010 9:38 am

Re: Local_CS Frenet-Serret wrong axes direction.

Post by galou_breizh »

Just my two cents. FreeCAD is still alpha-software and breaking changes were announced.

Gaël
Post Reply