News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Ellipse Tangent to Two Lines

Started by bigjimslade, November 07, 2013, 10:51:52 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bigjimslade

Referring to the following example.

I have a number of intersecting line pairs A&B. I would like to draw an Ellipse that is tangent to each pair where the major axis is parallel to line A (which will always be parallel to the axis. B will not be) going through specific intersection points on A&B.

I believe that should be enough constraints. How would one draw it?

bigjimslade

Another similar problem.

Given 5 points, draw the ellipse through them.

Henry Hubich

Quote from: bigjimslade on November 07, 2013, 10:51:52 PM
Referring to the following example.

I have a number of intersecting line pairs A&B. I would like to draw an Ellipse that is tangent to each pair where the major axis is parallel to line A (which will always be parallel to the axis. B will not be) going through specific intersection points on A&B.

I believe that should be enough constraints. How would one draw it?

See attachment for a mathematical solution that seems to work.

Henry H

Alvin Gregorio

Quote from: Henry Hubich on November 10, 2013, 10:03:33 AMSee attachment for a mathematical solution that seems to work.


Henry H

Hi Henry.  What "level" or "discipline" of math would a person have to have studied/know* in order to not only come up with the solution which you show, but be able to understand what you are relaying in your pic?

-Alvin

*as in... example:  "2nd-year, college; trigonometry"
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

Quote from: Alvin Gregorio on November 10, 2013, 10:26:40 AM
Quote from: Henry Hubich on November 10, 2013, 10:03:33 AMSee attachment for a mathematical solution that seems to work.


Henry H

H i Henry.  What "level" or "discipline" of math would a person have to have studied/know* in order to not only come up with the solution which you show, but be able to understand what you are relaying in your pic?

-Alvin

*as in... example:  "2nd-year, college; trigonometry"

Differential Calculus to derive the equations. One way to use them is with the Variables palette. Type "x," "c,"  "theta," "b," and "a" in the "Variable" column of the first five rows. Type the formulas for "b" and "a" in the "Formula" column of the fourth and fifth rows. Type actual values for "x," "c," and "theta" and calculated values for "b" and "a" will appear.

Henry H

Alvin Gregorio

#5
Quote from: Henry Hubich on November 10, 2013, 04:06:42 PM
Differential Calculus to derive the equations. One way to use them is with the Variables palette. Type "x," "c,"  "theta," "b," and "a" in the "Variable" column of the first five rows. Type the formulas for "b" and "a" in the "Formula" column of the fourth and fifth rows. Type actual values for "x," "c," and "theta" and calculated values for "b" and "a" will appear.

Henry H



I shoulda went to college
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Duram

Nice, I was thinking to be the only one to use hight math/geometry to solve some drawing difficulties, is there any other example  of drawings that need math?

Kenneth Martin

Just looking at henry's explanation gave me a head ache.
TurboCAD user since v3
TurboCAD on flickr || My twitter ||

Henry Hubich

In the attached drawing (v20 format), edit a,x, and/or theta in the Variables palette and the ellipse will update automatically.

Henry H

Torfinn

Quote from: Duram on November 11, 2013, 04:15:36 AM
Nice, I was thinking to be the only one to use hight math/geometry to solve some drawing difficulties, is there any other example  of drawings that need math?

Yes pleeeease, if somebody take the challenge :) , i try to figure this out for about a year ago, (See attached)
when i was making a ppm for curved window's.
Thinking people can walk on the moon, then this should be a "easy" case for the math people, but no, still not solved.
But i guess that only tell, nobody i know is clever with the math  ::)

I want/ need it in a way so i can put it in a calculator like Variables, a Excel spreedsheet or simular.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Marek

Hi Torfinn
If it's a circle, it does not seem that difficult. See the snap, if this is  that's what you mean
Marek
Marek

TC Pro 2016, TC Pro 2018, TC Plat 2019,TC Plat 2020,TC Plat 2021,TC Plat 2022,TC Plat 2023,TC Plat 2024, TC Plat 2025
Laptop Asus i7 6500U, dual-core 2,50GHz, NVIDIA GeForce GTX 950M, RAM 12 GB, SSD 480GB
Windows 10 64 bit

Alvin Gregorio

Quote from: Torfinn on November 11, 2013, 09:30:21 AM
Quote from: Duram on November 11, 2013, 04:15:36 AM
Nice, I was thinking to be the only one to use hight math/geometry to solve some drawing difficulties, is there any other example  of drawings that need math?

Yes pleeeease, if somebody take the challenge :) , i try to figure this out for about a year ago, (See attached)
when i was making a ppm for curved window's.
Thinking people can walk on the moon, then this should be a "easy" case for the math people, but no, still not solved.
But i guess that only tell, nobody i know is clever with the math  ::)

I want/ need it in a way so i can put it in a calculator like Variables, a Excel spreedsheet or simular.

Torfinn

I know this one, Torfinn.  Being an ex-Framing-Contractor-- in a community that builds a lot of arches in houses-- I had to go and find this formula, as well.  [Given the length and the height of an arch, what is the radius? ... So often-- in construction plans-- the architect/draftsperson specifies the width and the height and the "spring-point" location- or overall height-- but doesn't tell us the radius, which is what we, as framers, need.]

Nowadays, of course, with TurboCAD and Calculated Industries' most recent Construction Master calculators (they even make an inexpensive one for your smartphone), I no longer have any need for the formula (not to mention that I've pretty much stopped framing altogether).

It seems like these curve formulas really come down to triangulation; at least that's what I always try to reduce them to.  But having never studied Trigonometry, I've never been able to create my own formulas.  I try to "reduce" the problem to "triangulation" for the same reason that trusses work:  triangulation can only be one thing.

-Alvin

Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Marek

#12
This is just  the derived formula of the Pythagorean Theorem like on snap1.
Marek
Marek

TC Pro 2016, TC Pro 2018, TC Plat 2019,TC Plat 2020,TC Plat 2021,TC Plat 2022,TC Plat 2023,TC Plat 2024, TC Plat 2025
Laptop Asus i7 6500U, dual-core 2,50GHz, NVIDIA GeForce GTX 950M, RAM 12 GB, SSD 480GB
Windows 10 64 bit

Duram

Using math, how to make a closed polyline box that join 2 retangles with same small side (dots)?

must be a curve tangent to the corners

Torfinn

Sorry for late reply, i get busy in a veeery late meeting.

Thanks Alvin and Marek, Alvins formula is correct and very easy to put in variables, i have to check the example from Marek tomorrow as it now is about 2.30 AM here.

But,  i'm a " old man " with a very bad memory , what i was trying to find out about a year ago was actually  the "other" way, i know the length of the arc and the corde, then what is R of the circle ??

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Henry Hubich

Quote from: Duram on November 11, 2013, 03:03:46 PM
Using math, how to make a closed polyline box that join 2 retangles with same small side (dots)?

must be a curve tangent to the corners

Why do you want to do it using math? Here's one way to do it in TCad without math...

Henry H

Duram

Perfect, thats was a real math use for a drawing, we need to know some
geometry theorems to solve the way you did.


Marek

Quote from: Torfinn on November 11, 2013, 05:09:23 PM

... i have to check the example from Marek tomorrow as it now is about 2.30 AM here.

Torfinn

Torfinn, you do not need to check. This is exactly the same.
Marek
Marek

TC Pro 2016, TC Pro 2018, TC Plat 2019,TC Plat 2020,TC Plat 2021,TC Plat 2022,TC Plat 2023,TC Plat 2024, TC Plat 2025
Laptop Asus i7 6500U, dual-core 2,50GHz, NVIDIA GeForce GTX 950M, RAM 12 GB, SSD 480GB
Windows 10 64 bit

Henry Hubich

Quote from: Torfinn on November 11, 2013, 05:09:23 PM
Sorry for late reply, i get busy in a veeery late meeting.

Thanks Alvin and Marek, Alvins formula is correct and very easy to put in variables, i have to check the example from Marek tomorrow as it now is about 2.30 AM here.

But,  i'm a " old man " with a very bad memory , what i was trying to find out about a year ago was actually  the "other" way, i know the length of the arc and the corde, then what is R of the circle ??

Torfinn

Strangely, this is a problem for which there is no explicit formula for an exact solution. IMO the most practical way to solve it is by trial-and-error: Guess at a value for R and calculate L based upon that guess. Then calculate L again, using a new guess for R based upon the difference between the calculated L and the actual L. Continue the process until the guessed value for R produces a calculated L that's close enough. (Six or eight tries will probably do the job.)

You can do the calcs in the Variables palette. Create variables named A, L, and R. Insert actual values for A & L, but not for R. In the "Formula" column for R type the following expression and then press Enter...

2*R*R*asin(A/(2*R))

Henry H

Torfinn

Quote from: Marek on November 12, 2013, 08:01:35 AM
Quote from: Torfinn on November 11, 2013, 05:09:23 PM

... i have to check the example from Marek tomorrow as it now is about 2.30 AM here.

Torfinn

Torfinn, you do not need to check. This is exactly the same.
Marek

Hi Marek
I guess it was, but my eyes was crossing last nigth, so i did find it best to wait and get some rest :)
Abot the same time i figured out i was asking wrong questione.


Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Henry Hubich

#20
Quote from: Alvin Gregorio on November 12, 2013, 09:30:46 AM
Quote from: Henry Hubich on November 12, 2013, 09:20:09 AM
Quote from: Torfinn on November 11, 2013, 05:09:23 PM
Sorry for late reply, i get busy in a veeery late meeting.

Thanks Alvin and Marek, Alvins formula is correct and very easy to put in variables, i have to check the example from Marek tomorrow as it now is about 2.30 AM here.

But,  i'm a " old man " with a very bad memory , what i was trying to find out about a year ago was actually  the "other" way, i know the length of the arc and the corde, then what is R of the circle ??

Torfinn

Strangely, this is a problem for which there is no explicit formula for an exact solution. IMO the most practical way to solve it is by trial-and-error: Guess at a value for R and calculate L based upon that guess. Then calculate L again, using a new guess for R based upon the difference between the calculated L and the actual L. Continue the process until the guessed value for R produces a calculated L that's close enough. (Six or eight tries will probably do the job.)

You can do the calcs in the Variables palette. Create variables named A, L, and R. Insert actual values for A & L, but not for R. In the "Formula" column for R type the following expression and then press Enter...

2*R*R*asin(A/(2*R))

Henry H

I'm just an (ex)-carpenter, but on this one Henry I think I (and Marek?) have to respectfully disagree.

As you can see from Marek's hand-drawn example (if you can fit it in your monitor ;D), there is a triangulation solution; and, as we "know", triangulation can only have one result.

(If there wasn't one exact, solvable, formula, Calculated Industries-- in their latest Contruction Master calculators, with the "Radius" option, wouldn't be able to have the algorithm(?) to be able to solve for the radius, given the height and length of an arc.)

-Alvin

Alvin, I think Marek's hand drawn example uses the length of the chord, not the length of the arc, to find the radius.

...I'm not familiar with the calculators you mention. Gonna have a look.

...Just had a look. A calculator doesn't need an explicit formula for an exact solution; it can use an iterative algorithm which is essentially a trial-and-error process for yielding an approximate solution that is as close to exact as the user/programmer/calculator designer cares to specify.

Henry H

Torfinn

Then i guess Alvin was seing that he talked about the first questione and Henry about the second :)

The example from Alvin i know about and use.
The second questione is very complex i have been told by a guy ho know math, but unfortenly i dont know him well enougth so he would not solve my problem at that time, to much work i guess, or he was to busy.
If i understand it correct there is 2 calculations that has to be done to solve this, first some algebra and then some trigometri.
But it's way over my head, so when Duram was asking for some example i was thinking this was a possebility to solve this

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

Quote from: Henry Hubich on November 12, 2013, 09:51:16 AMAlvin, I think Marek's hand drawn example uses the length of the chord, not the length of the arc, to find the radius.

Henry H

I see why we disagree here, Henry:  I thought the original problem-to-solve from Torfinn was indeed Given the length of the Chord, and the Height, what is the Radius?  I didn't realize that Torfinn was stating the Length of the Arc and the Height was given, solve for the Radius.

That's enough on that for me; with TurboCAD and Construction Master, I just don't have to think anymore.  Seems like now-- at 50, and with those "tools" in hand-- will never be incentivized enough to learn how to solve these geometry problems without using those tools.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

bigjimslade

Here's my problem in the large. I have 12 frames with the same problem.

The points indicated are known but rounded to the nearest 1/16th of an inch.

I have a flat piece of steel at the top in red.  The actual flat length is undocumented. The point at the left is fixed. The one at the right is variable (and is now way too far to the right).

I have a bent piece of steel that follows the spline (yellow); goes through the white points then bends so that it is tangent to the red steel plate.

I know that the curve is an ellipse.  The previous frames use circles for the transition and their points are given and shown in red (center bottom, top top)). When the frames shifted to being ellipse, they got lazy and left off the dimensions. I have a general idea of where the intersection point is (the position of the transition points should form a smooth curve so the intersection should be slightly to the right of where the black projection line meets the red line.).

I then want to draw an ellipse with a vertical axis that:

1. I tangent to the red line slightly to the right of the intersection sown.
2. Is in a position that I can extend the yellow spline such that it will be tangent to the left of the last point.
3. Goes through the  4 light yellow points within 1/32" of an inch in any direction. (For scale, the four yellow points are 3" apart).

Drawing ellipses and adjusting their size is torment.

Three of the four points and the tangent should specify the ellipse.

bigjimslade

Another ellipse problem . . .  .

Here are one set of specific parameters. I have the same problem with different dimensions.

I have an arc 295 degrees and radius of 38' 8-1/2".
Centered in the opening of the arc I have a point  38' 2-1/2" from the center of the arc.


I need to close the arc with an elliptical arc that is tangent to the end points of the arc and goes through the point 6" closer to the center.

Henry Hubich

Quote from: bigjimslade on November 16, 2013, 10:11:46 PM
Another ellipse problem . . .  .

Here are one set of specific parameters. I have the same problem with different dimensions.

I have an arc 295 degrees and radius of 38' 8-1/2".
Centered in the opening of the arc I have a point  38' 2-1/2" from the center of the arc.


I need to close the arc with an elliptical arc that is tangent to the end points of the arc and goes through the point 6" closer to the center.

Assuming your arc is symmetrical about a vertical line, the equations I posted earlier oughta work, with the ellipse tangent to a horizontal line through the new point and to a line tangent to the arc at its endpoint.

Henry H