[Plugin] TrueTangents v3.0

[Plugin] TrueTangents v3.0

Postby TIG » 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
v3.0 Float 'n1=~n2' replaced with 'eq(n1,n2)' avoiding potential clashes.

TrueTangentsExamples.png

TrueIntersectionsExamples.png

TangentialArcsExamples.png

FilletArcExamples.png




More info here http://sketchucation.com/plugin/771-truetangents



Please get the latest version from the PluginStore...

Download

1
Last edited by TIG on Wed Nov 11, 2009 5:47 pm, edited 14 times in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents

Postby Ben Ritter » 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.
0

Ben Ritter 
 

Re: [Plugin] TrueTangents

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

TIG,

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

Ben Ritter 
 

Re: [Plugin] TrueTangents

Postby Bep » 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
0
"History is written by the winners"
User avatar
Bep 
 

Re: [Plugin] TrueTangents

Postby TIG » 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 ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents

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

TIG, thanks - both methods worked fine for me.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] TrueTangents

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

It now worked after closing and re-opening SU.
0

Ben Ritter 
 

Re: [Plugin] TrueTangents

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

Is there any way to get the outside tangents, as in your overlapping example, without overlapping circles?
0

Ben Ritter 
 

Re: [Plugin] TrueTangents v1.1

Postby TIG » 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
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.2

Postby TIG » 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
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.1

Postby Dan » 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.
0

Dan 
 

Re: [Plugin] TrueTangents v1.1

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

Thank you very much for this TIG. This will come in very handy.
0
Inspecting mirrors is a job I could easily see myself doing.

If you are the smartest person in the room, you are in the wrong room.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] TrueTangents v1.1

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

Thanks a bunch TIG, now a simple thing is truely simple.
I confirmed it works on Macs. ;)
0
User avatar
takesh h 
 

Re: [Plugin] TrueTangents v1.1

Postby joergj » 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
0

joergj 
 

Re: [Plugin] TrueTangents v1.3

Postby TIG » Sun May 31, 2009 5:38 pm

Here's v1.3... viewtopic.php?p=160780#p160780
I've added some more cpoints - at the intersections of the circumference(s) and the line from cpoint-to-centre or centre-to-centre - these can be useful if you want to redraw an arc through three points from tp to tp quickly with the same radius...
0
Last edited by TIG on Tue Jun 02, 2009 5:19 pm, edited 1 time in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.3

Postby putnik » Mon Jun 01, 2009 2:42 am

Nice one TIG, thanks a lot! :berserk:
0

putnik 
 

Re: [Plugin] TrueTangents v1.3

Postby cyan.archnet » Mon Jun 01, 2009 4:47 am

GREAT PLUGUN!, thanks a lot!
0

cyan.archnet 
 

Re: [Plugin] TrueTangents v1.3

Postby erikB » Tue Jun 02, 2009 4:52 pm

very usefull !!
Thanks TIG
erikB
0
User avatar
erikB 
 

Re: [Plugin] TrueTangents v1.4

Postby TIG » Wed Jun 03, 2009 9:44 am

Here's v1.4 viewtopic.php?p=160780#p160780
It's updated to have extra cpoints/clines on the opposite sides of the arcs' circumferences - now to aid in possible redraw in both directions of arc's curve...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.4

Postby HBMASA » Sat Jun 13, 2009 7:19 am

TIG,I wanted a celebration, this plug-in.
The traditional skills are essential to kikujutu Japan.
0

HBMASA 
 

Re: [Plugin] TrueTangents v1.4

Postby Bep » Sat Jun 13, 2009 11:45 am

Hello Tig,

Would it be possible to add "true intersections points" to the plugin.
These would indicate where cirkels and arcs mathematicly intersect.
as in the second picture

As I understand true cirkels in Sketchup are impractical because the would couse a to many faces in a model,
a true "construction cirkel" as in the first picture,(that would not be able to create a face to be push-pull't) as a build in tool or plugin however would be the best solution IMHO to overcome a lot of strugling of the ruby programmers to repair this shortcomming of Sketchup.

Thanks for all your great plugins.

Bep van Malde
0
"History is written by the winners"
User avatar
Bep 
 

Re: [Plugin] TrueTangents v1.5

Postby TIG » Mon Jun 15, 2009 1:30 pm

v1.5 is now available with a new tool 'trueintersections' - which adds cpoints at true intersection points for either 2nr selected intersecting arcs/circles OR a selected arc/circle and intersecting cline...

Get it here: viewtopic.php?p=160780#p160780
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.5

Postby massimo » Mon Jun 15, 2009 1:35 pm

Thank you, TIG. Really useful.
0
User avatar
massimo 
 

Re: [Plugin] TrueTangents v1.5

Postby Bep » Mon Jun 15, 2009 6:10 pm

TIG wrote:v1.5 is now available with a new tool 'trueintersections' - which adds cpoints at true intersection points for either 2nr selected intersecting arcs/circles OR a selected arc/circle and intersecting cline...

Get it here: viewtopic.php?p=160780#p160780

:thumb: :berserk: :thumb: :berserk:

Many Thanks Tig!

Greetings ,

Bep van Malde
0
"History is written by the winners"
User avatar
Bep 
 

Re: [Plugin] TrueTangents v1.5

Postby utiler » Thu Jun 18, 2009 1:52 am

This is fantastic, TIG, much appreciated!!!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] TrueTangents v1.5

Postby cyan.archnet » Thu Jun 18, 2009 2:52 am

THANKS A LOT for this GREAT plugin.
0

cyan.archnet 
 

Re: [Plugin] TrueTangents v1.5

Postby jeff hammond » Thu Oct 15, 2009 4:50 am

hi TIG

i'm wondering if it's possible to add the following ability to TrueTangents:




or, is there already a way to do this with v1.5 that i'm overlooking? it appears the options in v1.5 are working in similar fashion as each other (all dimensions are locked in place prior to using the tool) and this request would work a bit differently but if you think it's possible, i think it'd be a great addition to the toolset.

thanks much
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] TrueTangents v1.6

Postby TIG » Mon Oct 19, 2009 12:13 pm

Jeff

v1.6 viewtopic.php?p=160780#p160780

Now includes an extra tool 'tangentialarcs' which does what was asked ? Select a Line and an Arc/circle and useful cpoints and lines are added for you...

It does actually draw the arc for you as there are two possibilities - it makes the cpoints and clines needed and you can easily use the 2D Arc / Circle tool in 3-point mode to make the arc/circle needed...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TrueTangents v1.6

Postby curro_laca » Mon Oct 19, 2009 6:26 pm

Thanks, tig. Working like a charm.
Everything you release is really top of the tops. :thumb:
0

curro_laca 
 

Re: [Plugin] TrueTangents v1.6

Postby jeff hammond » Mon Oct 19, 2009 7:39 pm

Sweet! I'm on a phone right now but I'll try it out a little later.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], meak, ruthar, sfto1 and 14 guests

Visit our sponsors: