Tangent Arc 2

Started by Dr PR, January 21, 2016, 09:37:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I would like to see an "Arc Tangent to Two Lines" that works like the "Circle Tangent to Two Lines" function.

I just finished a job that required hundreds of arcs of a defined radius that were tangent to two lines. I used the "Circle Tangent to Two Lines" to find the center of the arcs. Then I drew perpendiculars from the center to the two lines to find the ends of the arcs. I drew the arcs with "Arc (Center, Beginning, End)." Then I deleted the circles and perpendiculars.

That was 17 operations (start functions, set points and delete unwanted garbage) for each arc. Repeated about 200 times!

It would be nice to have a function that allowed us to set the radius of the arc and then click on the two lines that the arc should be tangent to. Four operations instead of seventeen.

Phil
DesignCAD user since 1987

samdavo

Sounds like a macro could be written - if one had the necessary smarts.

Easier for the macro would probably be if you clicked the intersection point, and each of the ends of the line as well.   And these two latter points could define which of the four possible arcs you wanted. (2 cents)

Where is prl anyways lol? Taking a well earned break probably (?)

DrollTroll

#2
Phil, I think you were doing a bit more work than necessary. Until such time as we get Arc Tangent to Two Lines, try this method.

Draw the Circle Tangent to Two Lines at the desired radius.
Section Trim away part of the unwanted portion of the circle.
Select the remaining arc in Point Select Mode.
Shift-click on one end of the arc to initiate the Extend operation, then move the cursor near the tangent point and click F4 for Interesect-1.
Repeat the Extend operation for the other end of the arc.
25 years with DesignCAD

samdavo

#3
DT,  I tried that, but only limited success -
drew the circle,
cut some out,
went to point select, and "selected" one end,
triggered Extend using Shift+click

All was going ok until I pressed F4, when Windows 8 apparently took precedence - offering me a second screen, lol (?) 
(off topic) It's enough to make you screen!  Coincidentally one of the screen options is Extend :)

PSI suspect I will have to draw a straight line chord between the tangent points so that I can extend to those points instead.

Lar

#4
An arc tangent to 2 lines is a fillet (F), except that Fillet trims the lines.

So maybe you can duplicated all the lines off to the side somewhere (or to another layer), use the fillet command on all the sets of duplicated lines, when done use Select Filter to select all the arcs, snap a handle to an end of one of the duplicated lines and move back in place.

If the Fillet command's 'leave original lines' option didn't break the lines at the fillet then nothing extra would have to be done.

Lar

Bob P

Similar to Lar's method, I would create a couple of construction lines by snapping to the original lines (but not to their endpoints).  Then fillet between the construction lines.  Lastly, delete the construction lines.  Note that this apparently only works on the converging ends of the lines.

samdavo

#6
Ahh - good trick Lar.
Herewith the 8 options  (the outside lower set of arcs formed by going to Infobox, and using "Complement of Arc").
PS these are drawn with "Fillet\ Leave original lines" ticked.
PS No construction lines used.

Lar

Well, before we get too excited about just using Fillet for Arc-Tangent, I now realize that the breaking of the lines with 'leave original lines' is necessary when the radius of the *filleting* arc causes the lines to be extended, instead of being cut back.

So, to use Fillet for tangent-arc we would need another option: 'do not break lines' (which would be grayed out unless 'leave original lines' is activated).

...BUT, the breaking of the extended line is necessary if the portion of the line to be extended is not the last segment.

So unless we can come with enough options to cover everything maybe we just need the tangent-arc command.

Lar

minstrel

#8
Quote from: DrollTroll on January 22, 2016, 07:03:00 AM
Until such time as we get Arc Tangent to Two Lines, try this method.

Method worked nicely, thanks!

...as did Lars 'Fillet' approach.  Still learning!
Thanks, guys!

bdeck

#9
For years I've used a method very similar to that described by DT. See attached image.

An alternative is to construct two parallels at distance r from the target lines and then construct a circle or arc of radius r centered where the parallels intersect.

DT reminded me of some keyboard shortcuts that I never use. Think I'll try to reassign the Extend command to the backslash key so that it's easier to use.  "\ f4" is way better than the point select mode equivalent, "shift LMB F4".

bd


Dr PR

The Section Trim isn't as easy to use in 3D as in 2D drawings. You have to draw a 3D box around the objects to be cut/deleted.

In the 3D drawing I was working on I needed hundreds of tangent arcs at all sorts of angles. It is described in detail here:

http://forum.designcad.com/index.php?topic=6480.0

Rather than draw each set of lines, a tangent circle, perpendiculars and arcs one at a time I repeated dozens of identical operation one after the other using the F3 command repeat. So I drew all of the tangent circles one after another, all of the perpendiculars one after another, each of the arcs one after the other, etc. This allowed me to use F3 to speed up the operation, much faster that switching commands over and over again..

However, it produced a lot of objects crowded into a small space. This makes it much more difficult for using "Section Trim." There is the danger that the trim box will also enclose part of another close by object. I have done this accidentally too many times! Consequently I am a bit cautious when using the Section Trim function. I move all objects to be trimmed to an empty layer and disable all other layers. It would have taken forever to draw all of the 200 or so arcs that way.

I will remember the trim and extend option when I am working with just a few objects with lots of clearance around them.

Phil
DesignCAD user since 1987

bdeck

Quote from: Dr PR on January 25, 2016, 09:41:36 PM
The Section Trim isn't as easy to use in 3D as in 2D drawings.

How about control-shift-Left click in point select mode?

That brings up a pair of scissors that will break off a chunk of the circle that can be deleted with the delete key.

Much easier than 3d section trim.

bd

Dr PR

bd,

It is easy to snip circles and arcs with the scissors and the parts are still arcs (and not a multi-segment line). And the Point Select Mode scissors are a lot more specific than the trim box!

Now why didn't I think of that?

I would still have the problem of converting the true arcs to multi-segment line arcs.

In the project I was working on I had to control the number and placement of planes in the grid. In places I needed to butt two grids with three or four planes across against grids with seven planes across so the points of the two narrower grids aligned perfectly with the points of the wider grid, and with the two narrower grids having one common point at the ends where they meet the wider grid. This can be very tricky, so I use the "Use existing points" option to force the ends of the grids to align. If the grid template lines were true arcs who knows where the points would fall?

I have attached an image to illustrate this problem. The red four plane wide grid meets the green three plane wide grid in a single point at the edge of the blue eight plane wide grid. All of the points of the end of the red grid match exactly with points of the blue grid. The points at the end of the green grid also match exactly with points of the blue grid. This would be impossible if the template arcs were true arcs. The blue grid is eight planes across so it will mate up correctly with the light blue/cyan grid that is four planes across.

The template curves were segmented arcs, five points per "arc" for the red and cyan grids and four points for the green grid. For the blue grid I drew four and five point arcs for the green and red grids through the area of the blue grid. I drew a new set of nine point segmented lines over these shorter "arcs" to make the template lines for the blue grid. Then I deleted the unnecessary arcs for the red and green grids. On the cyan grid end this gave me exactly twice as many points as I needed, with every other point matching exactly with the five point template lines for the cyan grid.

Notice how DesignCAD squeezes extra points on the blue grid between points on the green and cyan grids. This is just too good to be true! Because all of the points are placed on the straight segments of the segmented template curves there are no "leaks" in the combined surface. This would print correctly in a 3D printer. And because DesignCAD did it automatically, instead of me having to move points in Point Select Mode (a very bad thing to do!) the normals of the grid squares are kosher and they will all render correctly.

****

Getting points of neighboring grids to align perfectly like this is very tricky. You have to control the number of planes across the grid and the placement of grid points precisely or you will get misaligned points and leaks between the grids. Leaks are a fatal error in 3D printing.

Phil
DesignCAD user since 1987

bdeck

Phil,

An alternative that might be faster for some is to construct the circle tangent to two lines, then draw an arc  on top of the circle (center, first endpoint, second endpoint) using the f4 key to snap to intersections for first and second endpoints. Then delete the circle.

I personally do not favor this method, because a scissor cut and two trimmed ends takes one fewer precision mouse move. As my eyes get older, any reduction in the need to focus sharply on the screen is a bonus.

Regards,
bd

Dr PR

bd,

Thanks! I'll remember that. It is a bit faster than drawing the two perpendiculars to find the tangent points.

I had to look up what F4 did. This is the "Point/Intersect 1" function. Oddly, I don't recall ever using it. I use "Point/Intersect 2" all the time. I guess this is because "Intersect 1" will find any intersection on a line, including those you aren't interested in but "Intersect 2" finds only the specific intersection you ask for (when it works).

Phil
DesignCAD user since 1987