PmCircle structure parameter definition( rTan , rPerp and rHelix)

More
17 Mar 2021 03:48 #202557 by mil818
/* Generalized circle structure */

typedef struct {
PmCartesian center;
PmCartesian normal;
PmCartesian rTan;
PmCartesian rPerp;
PmCartesian rHelix;
double radius;
double angle;
double spiral;

} PmCircle;

My question is that :
1 . what means are parameter rTan , rPerp and rHelix ?
2. Are there has a figure that could show them clearly ?

Please Log in or Create an account to join the conversation.

More
18 Mar 2021 01:40 #202696 by andypugh
There seems to be some clues here:
github.com/LinuxCNC/linuxcnc/blob/43ac97...th/_posemath.c#L1726

But it also appears that whilst rHelix is used, rTan and rPerp are not.

Please Log in or Create an account to join the conversation.

More
18 Mar 2021 05:22 #202709 by mil818
/* vector in plane of circle from center to start, magnitude radius */
pmCartCartSub(start, &circle->center, &circle->rTan);

My understanding is that rTan is the vector from center to start point.

/* vector in plane of circle perpendicular to rTan, magnitude radius */
pmCartCartCross(&circle->normal, &circle->rTan, &circle->rPerp);

circle->normal is normal of circle,where is its exact position in one circle plane ? circle->rPerp is cross production between circle->normal and circle->rTan vector. For linuxcnc, do we have original description for this definition by figure.

Please Log in or Create an account to join the conversation.

More
19 Mar 2021 00:43 #202788 by mil818
I draw a circle and add one rTan vector,but I don't know where is normal vector and rPerp vector ? who could please tell me about it ?
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Mar 2021 23:57 #202913 by andypugh
Out of interest, why are you wanting to understand all of this stuff?

What is your application? Or is it just curiosity?

Please Log in or Create an account to join the conversation.

More
22 Mar 2021 00:43 #203183 by mil818
Hi,Mr
Thank you for your warm reply.
If I don't understand it clearly it will be a black box to me and I could not optimize it in the next step.
Anyway, it is the first step to know its algorithm that is related to math.

Please Log in or Create an account to join the conversation.

More
25 Mar 2021 06:38 #203586 by mil818
Hello,everyone

Who could please give me some hints for this topic ? So far rTan , rPerp and rHelix parameter definition is obscured for me.

Please Log in or Create an account to join the conversation.

More
27 Mar 2021 01:36 #203764 by andypugh
It is possible that nobody knows. This code has a feel of something either written with future expansion in mind 20 years ago, or imported from somewhere else at about the same time.

LinuxCNC never uses rTan or rPerp. it uses rHelix, and my only suggestion is that you look at the code to see what it is used for.

No one person knows how all the LinuxCNC code works. Parts of the code that have never been used are likely to be understood by no-one (including the original author, this many years on)

Please Log in or Create an account to join the conversation.

More
01 Apr 2021 06:17 #204362 by mil818
Hello,Mr
Firstly, thank you for your warm reply for this quesiton, like what you said in your previous answer,it is difficult to understand how rTan , rPerp and rHelix work in linuxcnc,I just use it as black box but I don't know what its algrithm really is working.

Please Log in or Create an account to join the conversation.

More
01 Apr 2021 09:49 #204381 by andypugh

Hello,Mr
Firstly, thank you for your warm reply for this quesiton, like what you said in your previous answer,it is difficult to understand how rTan , rPerp and rHelix work in linuxcnc,I just use it as black box but I don't know what its algrithm really is working.


rTan and rPerp don't "work in LinuxCNC". The code might be functional, but as far as I can see LinuxCNC never calls those functions or uses that data.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds
Powered by Kunena Forum