It is currently Thu Sep 02, 2010 9:55 pm

Registration
Login Help

Advertise Here

[Plugin] TrueTangents v2.0

FAQMembersRegisterLogin

[Plugin] TrueTangents v2.0

Postby TIG on Fri May 29, 2009 4:33 pm

This Ruby Script now provides 5 new functions - 'truetangents', 'commontangents', 'trueintersections', 'tangentialarcs' and 'filletarc' - it has plugin sub-menu item 'Tangent-Tools...' or you can type the names to run it from the Ruby Console. It's written to work on a selection BUT could be reconstructed as a cline/arc method if thought useful...
True Tangents = truetangents
Select an arc/circle and a cpoint (aka guide-point)
Run truetangents
On errors - e.g. no arc selected or the cpoint is inside the circumference - there is a console message.
It then draws cpoints at the arc-centre, circumference and the 2 tps, and clines on the two radii and tangents - it draws to the true tps - these might not be on the arc itself if it's lightly segmented - now you can rotate, entity-info increase segments or reconstruct the arc as desired so it passes through a tp...
Common Tangents = commontangents
Select an arc/circle
Select a second arc/circle
Run commontangents
On errors - e.g. 2 arcs not selected or a circle within another circle can have no common tangents - there is a console message.
It then draws cpoints at the arc-centres, circumferences and tps, and clines on the four radii and two/four tangents - it draws to the true tps - these might not be on the arc itself if it's lightly segmented - now you can rotate, entity-info increase segments or reconstruct the arc as desired so it passes through a tp... Different forms of common tangent are produced if the arcs are separated by clear space or intersect (4 or 2 nr)...
True Intersections = trueintersections
Select an arc/circle
Select a cline OR a second arc/circle
Run trueintersections
On errors - e.g. non-intersecting arcs/clines - there is a console message.
It then draws 2 cpoints at the true intersections of the arc and the cline [OR the 2 arcs]; it also adds further centre-points, clines etc and additional true mid-points on the circumference to aid with later arc recreation if desired: special cases produce other drawn results - e.g. cline is a diameter, arcs just kiss or touch at one point...
Tangential Arcs = tangentialarcs
Select a Line and an Arc or Circle
Run tangentialarcs
On errors - e.g. non-intersecting arcs/clines - there is a console message.
It then draws cpoints at the centers of the two tangential-arcs [or one tangential-arc and another looped tangential-arc] and at their tangent-points etc, [messages in console], it also adds clines on the radii to the tangent points-etc. If the line is tangential to the arc or if the tangential arc's radius would be > the arc_radiusx100 or smaller than 1/100th then no cpoint is drawn at the center because it might be many miles away and effect the model's extents - instead a cline is drawn between the line end and tangent-point and a console message suggests you might like to draw a straight line instead... The tangential arc cpoints etc are added at the end of the line nearest to the arc, unless that end is on the circumference, then the other end is used. Internal lines also have tangential-arcs and are created similarly at the end nearest the circumference unless it's touching it...
Fillet Arc = filletarc
Select an arc/circle and a cline/line (aka guide-line)
Run filletarc
On errors - e.g. no arc selected - there is a console message.
Enter the required fillet radius in the dialog that appears. If the line doesn't intersect the arc and the fillet radius won't work then you are told and the dialog reopens giving the minimum radius that will work... Assuming the radius is valid then it draws cpoints at the arc-centre, the new fillet arcs' centers and all of the the true tps, with clines on the each of the two radii and the chord linking the pairs of tps - note how these might not be on the arc itself if it's lightly segmented - there are 4 or 8 possible fillet arcs depending on whether or not the line intersects the selected arc, draw over the one(s) you want using the 2D Arc / Circle Tool etc...
EDITS:
v1.1 now adds all 4 common-tangents for non-overlapping circles
v1.2 glitch on some external common-tangents permutations fixed
v1.3 additional cpoints added at circumference intersections to aid arc redraw though 3 points if needed
v1.4 extra cpoints/clines added to opposite circumference intersections to aid arc redraw in other direction
v1.5 true intersections added for arc+cline OR arc+arc
v1.6 tangential arcs added for line+arc
v1.7 fillet arc added for arc/circle + line/cline, dialog to enter fillet radius
v1.8 missing 5th menu item fixed
v1.9 sub-menu 'Tangent-Tools...' added
v2.0 tolerance added on the coplanar check for arcs

TrueTangentsExamples.png

TrueIntersectionsExamples.png

TangentialArcsExamples.png

FilletArcExamples.png


TrueTangents.rb
You do not have the required permissions to view the files attached to this post.
TIG
User avatar
TIG
Global Moderator
 
Posts: 4478
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Operating system: Vista
SketchUp version: Latest Pro 7.1

Re: [Plugin] TrueTangents

Postby Ben Ritter on Fri May 29, 2009 5:32 pm

TIG, Thank you so much. Look forward to giving it a try. I appreciate your generosity in sharing this.
Ben Ritter
 
Posts: 166
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] TrueTangents

Postby Coen Naninck on Fri May 29, 2009 5:37 pm

Thanks TIG!
"When you're one step ahead of the crowd you're a genius.
When you're two steps ahead, you're a crackpot." -- Rabbi Shlomo Riskin (Feb. 1998)
User avatar
Coen Naninck
Administrator
 
Posts: 5870
Joined: Wed Oct 17, 2007 10:50 pm
Location: Rotterdam, Netherlands.
Operating system: Ubuntu 10.04
SketchUp version: 8.0.0014a Build 2f

Re: [Plugin] TrueTangents

Postby Ben Ritter on Fri May 29, 2009 5:39 pm

TIG,

True tangents worked fine, couldn't get common tangents to execute.
Ben Ritter
 
Posts: 166
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] TrueTangents

Postby Bep on Fri May 29, 2009 6:38 pm

Ben Ritter wrote:TIG,

True tangents worked fine, couldn't get common tangents to execute.


Same here

Bep
User avatar
Bep
 
Posts: 127
Joined: Thu Nov 15, 2007 8:36 pm
Location: Brunssum Netherlands 50°56'40.91"N 5°58'55.97"O
Name: Bep van Malde
Operating system: xp home
SketchUp version: v7 pro

Re: [Plugin] TrueTangents

Postby TIG on Fri May 29, 2009 8:56 pm

commontangents - are you selecting two arcs / circles that are as the image ?
The images were made from SUp 7 using the tools... Arcs/circle must be coplanar - what's the Ruby Console error message ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 4478
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Operating system: Vista
SketchUp version: Latest Pro 7.1

Re: [Plugin] TrueTangents

Postby Jim on Fri May 29, 2009 9:23 pm

TIG, thanks - both methods worked fine for me.
I probably over-simplified that.
sketchup plugins & news blog
Jim
 
Posts: 2876
Joined: Mon Nov 12, 2007 10:13 pm
Name: Jim Foltz
Operating system: XP Pro SP3
SketchUp version: Google Pro 8.0

Re: [Plugin] TrueTangents

Postby Ben Ritter on Fri May 29, 2009 9:37 pm

It now worked after closing and re-opening SU.
Ben Ritter
 
Posts: 166
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] TrueTangents

Postby Ben Ritter on Fri May 29, 2009 9:41 pm

Is there any way to get the outside tangents, as in your overlapping example, without overlapping circles?
Ben Ritter
 
Posts: 166
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] TrueTangents v1.1

Postby TIG on Fri May 29, 2009 10:08 pm

I've added the 2 'external' common-tangents to the non-overlapping version... Thanks for the feedback.

Find v1.1 here: viewtopic.php?p=160780#p160780
TIG
User avatar
TIG
Global Moderator
 
Posts: 4478
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Operating system: Vista
SketchUp version: Latest Pro 7.1

Re: [Plugin] TrueTangents v1.2

Postby TIG on Fri May 29, 2009 11:13 pm

I've just found an error in certain combinations of arc radius and rotation in 3D. Sometimes the common-tangents weren't drawn right... Found a fix... here's update v1.2
viewtopic.php?p=160780#p160780
TIG
User avatar
TIG
Global Moderator
 
Posts: 4478
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Operating system: Vista
SketchUp version: Latest Pro 7.1

Re: [Plugin] TrueTangents v1.1

Postby Dan on Sat May 30, 2009 9:26 am

Thank you, Tig!
I was waiting for longtime for tools like this one, helping the 2d drafting directly in SU.
I also claimed for years for better native SU 2d drafting tools, but it seems that AutoCAD still has some magic attraction, although buying it only to use its 2d capabilities seems to me a waste of money :roll:

The bad news, though, is that TrueTangents makes my SU 7 to end with bugsplat on initializing :( It surely is a ruby conflict, because deleting it solves the issue - actually I have no more than 10 or 12 ruby installed).
I'll try to find out where the problem is.
Dan
 
Posts: 33
Joined: Mon Nov 19, 2007 7:54 pm

Re: [Plugin] TrueTangents v1.1

Postby Dave R on Sat May 30, 2009 1:42 pm

Thank you very much for this TIG. This will come in very handy.
When all else fails, play dead.
User avatar
Dave R
 
Posts: 1979
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: WinXP Pro/ OS-X 10.6.2
SketchUp version: Pro 7.1x

Re: [Plugin] TrueTangents v1.1

Postby takesh h on Sat May 30, 2009 10:07 pm

Thanks a bunch TIG, now a simple thing is truely simple.
I confirmed it works on Macs. ;)
User avatar
takesh h
 
Posts: 119
Joined: Tue Apr 08, 2008 1:37 am
Location: Tokyo, Japan
Operating system: OS X whatever
SketchUp version: 6 and 7

Re: [Plugin] TrueTangents v1.1

Postby joergj on Sun May 31, 2009 7:27 am

Thank you, TIG! :berserk:
I missed this tool a lot of times in the past.
And a special thank you for making it work in SU5 and on the mac!
Jörg
joergj
 
Posts: 4
Joined: Mon May 05, 2008 9:40 pm

SketchUcation One-Liner Adverts

by Ad Machine on 5 minutes ago

LightUp - Realtime Lighting
Ad Machine
Robot
 
Posts: 2010

Next

 

Advertise Here

Who is online

Users browsing this forum: Google Adsense Bot and 3 guests