- LinuxCNC
- General LinuxCNC Questions
- PmCircle structure parameter definition( rTan , rPerp and rHelix)
PmCircle structure parameter definition( rTan , rPerp and rHelix)
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
17 Mar 2021 03:48 #202557
by mil818
PmCircle structure parameter definition( rTan , rPerp and rHelix) was created 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 ?
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
18 Mar 2021 01:40 #202696
by andypugh
Replied by andypugh on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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.
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.
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
18 Mar 2021 05:22 #202709
by mil818
Replied by mil818 on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
/* 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.
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.
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
19 Mar 2021 00:43 #202788
by mil818
Replied by mil818 on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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 ?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
19 Mar 2021 23:57 #202913
by andypugh
Replied by andypugh on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
Out of interest, why are you wanting to understand all of this stuff?
What is your application? Or is it just curiosity?
What is your application? Or is it just curiosity?
Please Log in or Create an account to join the conversation.
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
22 Mar 2021 00:43 #203183
by mil818
Replied by mil818 on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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.
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.
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
25 Mar 2021 06:38 #203586
by mil818
Replied by mil818 on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
Hello,everyone
Who could please give me some hints for this topic ? So far rTan , rPerp and rHelix parameter definition is obscured for me.
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
27 Mar 2021 01:36 #203764
by andypugh
Replied by andypugh on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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)
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.
- mil818
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
01 Apr 2021 06:17 #204362
by mil818
Replied by mil818 on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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.
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4860
01 Apr 2021 09:49 #204381
by andypugh
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.
Replied by andypugh on topic PmCircle structure parameter definition( rTan , rPerp and rHelix)
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.
- LinuxCNC
- General LinuxCNC Questions
- PmCircle structure parameter definition( rTan , rPerp and rHelix)
Time to create page: 0.071 seconds