Page 1 of 2

Polygone along a line

Posted: Wed Feb 16, 2022 5:09 pm
by Angelos
Do you think wpuld be possible drawing a polygon along a line?

Re: Polygone along a line

Posted: Thu Feb 17, 2022 4:11 pm
by Eric Pousse
Sorry Angelos, I don't understand what you mean.

Cordialement.

Re: Polygone along a line

Posted: Thu Feb 17, 2022 4:32 pm
by Angelos
Sorry.
I have a line, with a specific measure and angle. I want to drawing a polygone with one of its sides coincident with the line.
So click on the first point of the line, than on the final one and i’ve got my polygone.

Re: Polygone along a line

Posted: Thu Feb 17, 2022 6:43 pm
by Eric Pousse
Ha do you mean a regular polygon?!

Re: Polygone along a line

Posted: Thu Feb 17, 2022 7:23 pm
by Angelos
Yes

Re: Polygone along a line

Posted: Fri Feb 18, 2022 8:20 am
by Eric Pousse
Bonjour Angelos,

There is not a tool to do that (nor in RealCADD).
But it is easy to calculate and draw this polygon.
With :
N : number of sides of the polygon you want
Lc : length of the base line (and of the sides of the polygon)

Begin to draw a perpendicular line from the base line in direction of the center of the polygon you want
Move this line to the center of the line
You have now simply to set the length of this perpendicular line to have the center of the polygon
This length is :
L = Lc / 2 / tan(360 / N / 2)

Voilà !
You can now draw the polygon from the point of the perpendicular which is the center of the polygon to one end of the base line.

Cordialement.

Re: Polygone along a line

Posted: Fri Feb 18, 2022 9:26 am
by Angelos
Thank you very much

Re: Polygone along a lin

Posted: Fri Feb 18, 2022 9:59 am
by Angelos
But … i don’t obtain the result.

50 / 2 / tan (360 / 8 / 2) = 44,81

The regular polygon of 8 sides from the center to one side of base line has 39,27 as side

Re: Polygone along a line

Posted: Fri Feb 18, 2022 11:51 am
by Angelos
Now it works perfectly with formula:

Lc : (2 * tan(180°: N))

Thank you

Re: Polygone along a line

Posted: Fri Feb 18, 2022 1:29 pm
by Eric Pousse
It is the same formula.