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.

Circles Tangent to 3 Lines

Started by orzel-w, November 05, 2015, 01:12:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

As John Lennon used to say, most peculiar mumma.

Adrian 2.0

after a little experimenting I've narrowed down the issue to be with the angle between the nearly-parallel lines.
I can now reproduce the error at will:
1. Draw a horizontal base line.
2. Draw a line that crosses it (any angle seems to work)  90deg is easy!
3. Draw a line parallel to the second one - the tangent circle works as on the tin.
4. Rotate the second line by less than 0.1degree (I tried 0.01 & 0.099) and the error comes back.

It seems to be only when the lines are close to parallel that the problem starts - if for instance you rotate the baseline by 0.01 degree the command works OK.
I've not tried to find the limits of the acute angle trigger.

Hopefully this helps some clever programmers figure out what the issue is?

samdavo

#17
Ahh - well done.
That's why they pay you the big bucks m8 :)

PS When you think about it, considering the way it always chose that acute angle (convergent) side of the crossing line, it HAD to be something like that.   

PS I find you can also draw a circle tangent to two lines and another circle.  - Or a line and two circles -  Or between 3 circles (where there can be an internal "race" and an external "race" - compare ball bearing).  Pretty damned clever this DCAD :)

Also Help says "If the three lines do not lie in the same plane, and the circle is drawn tangent to the three lines while in 2D Mode, the circle is drawn at the Z coordinate the cursor was on before the switch to 2D Mode. This will be apparent when you switch back to 3D Mode.",  ... So you can extrude said circle, and get the largest circular pipe to go down what is effectively a triangular tunnel, tangential to lines that are not in the same plane. (2 cents)

samdavo

#18
Off topic,  But speaking of ball bearings, here's a planetary gear that a friend 3D printed as a single unit - works like a dream.  (2 cents)

samdavo

And again off topic - a ball bearing with multi-coloured balls.  Plus a neck in section.  The sky's the limit with 3D printing :)

orzel-w

Quote from: adriank on December 21, 2015, 05:08:00 AMI've not tried to find the limits of the acute angle trigger.
I tried starting with two oblique parallel lines and a horizontal crossing line. With two lines parallel, the circle places on whichever side of the horizontal crossing line the second parallel line is picked.

Next I rotated one parallel line by 0.05° and the problem appeared; the circle goes in only on the acute angle side. Then I rotated the same line to a 1° angle to the formerly parallel line, then 3°, 4°, 5°, 6°, 10°, 20°, 30°, 40°, and finally 50° between the originally parallel lines. The problem never went away.

DrollTroll

Works sometimes when the third line is approximately perpendicular to the not-quite-parallel lines, but not always. Seems to be a logic error (or unintended limitation) in the way it picks which possible tangent circle to draw. I'll ask programming to take a look.

Meantime there's always the old-fashioned way -- find the bisectors of two included angles, and draw a perpendicular from their intersection to one of the lines. The intersection is the center point and the end of the perpendicular is the radius point.

25 years with DesignCAD

orzel-w

Quote from: DrollTroll on December 21, 2015, 12:38:39 PM
I'll ask programming to take a look.
Thanks. I think that's what's called for here. I don't mind applying geometric solutions myself, but if there's a (properly working) tool available, it goes faster. Especially if I don't waste time trying to figure out "what I'm doing wrong" first. ;)

samdavo

Something to do with "poorly conditioned equations" maybe? 
Perhaps the accuracy starts to suffer with such acute angles?
And perhaps the longhand method of bisecting angles would be recommended anyway (?)  By a purist (?) lol.

PS To bisect an angle, I would probably dimension the angle, then find the midpoint between the arrows.  Although Draw\Arc (Centre Begin End) looks neater I guess - and using Ctrl K to find midpoint (2 cents).  And no doubt there's a better way as well that I'm not aware of. :)

DrollTroll

I used Arc center, begin,end, then Ctrl-K to find the midpoint.
25 years with DesignCAD

Dr PR

#25
An easy way to bisect an angle is to draw a circle (O) with the center at the intersection of the two lines (red), and then use "Point/Line Snap" (K) to set the radius on one line (any radius will do) and another point on the other line to define the plane of the circle.

Then draw a line (green) from the intersection of the circle with one line (Intersect 2) to the intersection of the circle with the other line. This forms the base of an isosceles triangle.

Now draw a line (magenta) from the intersection of the first two lines (red) to the midpoint of the base (green) of the triangle.

****

You could use an arc instead of the circle. And you could draw the arc as a four segmented line. Then draw the bisector from the intersection of the two original lines to the middle point of the segmented arc.

****

The classical Euclidian way (no "Midpoint" function or segmented arcs) to  bisect an angle is to draw a circle from the center of the angle as above. Then draw two more circles of equal diameter with the centers at the intersections of the first circle with the two lines. Then draw a line from the intersection of the two original lines to an intersection of the two circles.

This is just a variation on the Euclidian way to bisect a line.

****

If you want an interesting challenge, try to find a way to trisect an angle using a geometric construction (using Tickmarks or segmented arcs isn't allowed).

Phil
DesignCAD user since 1987

samdavo

#26
Quote from: Dr PR on December 23, 2015, 11:06:17 PM
You could use an arc instead of the circle. And you could draw the arc as a four segmented line. Then draw the bisector from the intersection of the two original lines to the middle point of the segmented arc.

****

If you want an interesting challenge, try to find a way to trisect an angle using a geometric construction (using Tickmarks or segmented arcs isn't allowed).

Phil
Well Phil, I have thought about this, and can't offer anything (well anything that could be done without using DCAD) -

OTHER THAN your excellent clue of using a segmented arc  - or indeed "Arc ( Centre begin end)",  Draw as line, 3 segments. 

PS Reminds me of other examples of minimising the number of segments or facets etc,  eg you can draw a square based pyramid by choosing "Cone with 4 facets" etc (2 cents)

i.e. there is effectively no difference between the cone command and the pyramid command

Dr PR

Sam.

You are not alone. My 10th grade geometry teacher gave the angle trisection problem for extra credit (made straight A+s in geometry). After I had scratched my head for a week she told me that Euclid had come up with that problem and no one had ever solved it.

Of course, Euclid didn't have DesignCAD. Just think what he could have done with it!

PPhil
DesignCAD user since 1987

The Scud

I have just tried this with V25 and drawing the 'A', I select the left most line first, followed by the right then the bisecting line. Bingo. Circle tangent to 3 lines.
BETA tester from long ago.
User of:
SolidWorks 2024, CREO10 and TurboCAD Professional.
FIM Senior Technical Steward for MotoGP.
Work at: Semi-retired..

samdavo

#29
What if the angle at the apex is less than 0.1 deg? :)  Can you get two circles one above and one below?

OK, I've found a fairly easy way to draw the lower circle. 
If you choose Draw Circle tangent to three lines, you will get the top circle (nearest the acute angle / apex of the A.

Now if you choose that instruction again, but this time select the two sloping lines and the circle just drawn, you will (hopefully) get the lower circle. (QED)