News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

measuring chords

Started by paul craig, May 23, 2012, 01:07:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paul craig

goes back to old fashioned maths, i know, but wondered if there was a quick way to determine the radius of a circle
when you have a chord length and an offset distance??

i have a regular item to draw which has an offset at 3inches and a height of 2ft 10.5inches, it curves down to zero,zero.
at the moment, i just guess and continue to draw circles until it hits the marks, i use centre rad, but maybe there is a better way??

paul

JJG

Paul, can you precise what you call "offset distance" ; I have maybe something which may interrest you.

paul craig

hi there, i have attached a sample of half the side i am trying to draw

hopefully it will make it clear, the other one shows the complete end idea

i know i am being lazy, just need to do it quite often.

paul

Bob P

Paul,

Could you annotate your drawing, showing your constraints?  I'm still not getting your intentions.

Lar

Paul, when you have an arc and you need the full circle use the 3-point circle command.

See attached image.

Lar

paul craig

sorry guys got the end result not the original

for the top radius i have no problem, that is defined, it is the lower radius i am trying to determine.
the centre line is 2ft 10.5inches above the bottom, and the circle would go through the lower corner, and go out to the
centre, 3inches wider than that corner.

does this make more sense?/
paul

Dempsey

Hi Paul,

Based on your drawing it is just a triangular equation:

R^2 = 34.558^2 + (R - 2.981)^2
or
R^2 = 34.558^2 + R^2 - 2*2.981*R + 2.981^2
or
2*2.981*R = 34.558^2 +2.981^2
or
R = (34.558^2 + 2.981^2) / (2 * 2.981)
or
R = 201.8017

Dempsey

MarkX

Quote from: paul craig on May 23, 2012, 05:01:16 PM
sorry guys got the end result not the original

for the top radius i have no problem, that is defined, it is the lower radius i am trying to determine.
the centre line is 2ft 10.5inches above the bottom, and the circle would go through the lower corner, and go out to the
centre, 3inches wider than that corner.

does this make more sense?/
paul
Do you mean like the attached (sorry, I deleted your dimensions for clarity) ?

Got a radius of 228.1154767.

Mark

paul craig

yes mark,and rob too. and i guess also i could use the method of lar, and use the set 3 points of a circle.
i was as usual being lazy and hoping for a simple way of finding it, maybe now i have.
but mark how did you get there??

paul

MarkX

Quote from: paul craig on May 23, 2012, 06:17:52 PM
yes mark,and rob too. and i guess also i could use the method of lar, and use the set 3 points of a circle.
i was as usual being lazy and hoping for a simple way of finding it, maybe now i have.
but mark how did you get there??

paul
I just mirrored the existing part to give a longer chord with a known center line, and then applied the 3 point method.  Its pretty fast. Maybe a dedicated macro would be a little faster.

Mark

paulerens

#10
Hi paul craig,
This is a macro based on the Arc 2, with the arithmetic of  Dempsey.
Since I heard that you are very lazy, you put only three points.
A.First at the beginning of the arc,B. the second at the end of the arc,C. the third at the distance of the partial radius.
Put the points in a counter clockwise direction.
>2DBox
{
<color 255,0,0
<orientation 1
<type 1
}
GetSelect 1,j
Entity j
PointVal x1 ,y1 ,z1 ,1
PointVal x2 ,y2 ,z2 ,2
PointVal x3 ,y3 ,z3 ,3
>Erase
{
}
Dist = Sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1) + (z2-z1)*(z2-z1))
Diste = Sqrt((x3-x2)*(x3-x2) + (y3-y2)*(y3-y2) + (z3-z2)*(z3-z2))
R = ((Dist/2)^2 + Diste^2) / (2 * Diste)
>Arc2
{
<type 1
<radius [R]
<pointxyz [x1 ,y1 ,z1 ,1]
<pointxyz [x2 ,y2 ,z2 ,2]
}
End

Rob S


Great as it is, I'm not sure you need all that.

You just draw your three-point arc, select it, open the info box, and the radius is given there.
User since forever

MarkX

Quote from: Rob S on May 24, 2012, 07:51:04 AM

Great as it is, I'm not sure you need all that.

You just draw your three-point arc, select it, open the info box, and the radius is given there.
In theory, but if you want to guarantee that the center ends up on the specified center-line, then I think you have to mirror the arc. I got a very different result just trying 3 points on the original arc. It could be that the arc isn't perfectly circular.

Mark


paul craig

as usual you guys are ace, but although i have not tried macros before, i have in the past used for instance arc 3 point
and i found it created a balloon type effect, which is why i was concerned to consider the 3 point circle idea either.

the carriages that i am doing at the moment have a flat top and a curved or (tumblehone) bottom,
the rooves are 3 curves based on a larger central radius plus smaller rad corners, i use centre rad, length for that, and since it is known, that is pretty easy. however the sides i have only straight lengths, not radii, hence my question.

paulerens, much as i like the idea of your macro, i think it is too big for my present need, but that may be me not understanding the constraints. i also do not really understand how to load macros in to the programme.

just to show that i can do some other things though, how about the attached??
i am in the process of getting standard parts sorted. difficult to get the swept shape out of the left hand end
paul

paulerens

Beautiful 3D work, Paul.
The Arc (3 points) has exactly the same shape as that what I do with the macro, Grrrrrrr.