[Plugin] Select Curve

[Plugin] Select Curve

Postby thomthom » Wed Sep 22, 2010 8:20 pm

Overview
A quick little select tool that will find "curves" when you click on an edge. It'll look for connected visible edges and select every edge until it branches or ends.

Access
Tools > Select Curve
View > Toolbars > Select Curve

Features
  • Select Curve
    SelectCurve.png

Requirements
  • SketchUp 7 or newer - ( Other versions untested )
  • TT_Lib2 (v2.4.0)

Download



Footprint
<Sketchup>/Plugins/
+-
TT_SelectCurve
+-
tt_select_curve.rb


0
Last edited by thomthom on Sat Jan 18, 2014 1:39 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby CadFather » Wed Sep 22, 2010 8:51 pm

as always...
0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby jeff hammond » Wed Sep 22, 2010 9:11 pm

so good!

didn't realize ⇧Space could be a keystroke shortcut but it can.. this is probably the quickest i've every assigned a ruby to a keystroke (ie- 1 use :D )
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Wed Sep 22, 2010 9:17 pm

Jeff Hammond wrote:didn't realize ⇧Space could be a keystroke shortcut but it can.. this is probably the quickest i've every assigned a ruby to a keystroke (ie- 1 use :D )

Ah - good tip. I was wondering what shortcut to use.
hm... should probably make custom cursors so one can see from the icon it's a special Select tool...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby mitcorb » Wed Sep 22, 2010 9:28 pm

@ThomThom:
This looks like a good step toward selecting loops.
One question. In your illustration I notice that the ellipsoidal entity/extrusion has smoothe/hidden verticals. Is the smoothed verticals a required condition, in other words that loop selection would never complete if the verticals were visible?


EDIT: Ok, I see that I should have reread the description two or three more times before posting.
0
Last edited by mitcorb on Wed Sep 22, 2010 9:35 pm, edited 1 time in total.
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby EarthMover » Wed Sep 22, 2010 9:30 pm

Thanks bro! This is great and much needed. I can never seem to get Fredo's to work.

I went Ctrl + Space for my shortcut as I already have Hover Select as Shift + Space. I like to keep as many shortcuts on my left hand as possible to keep the right on the mouse.
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Wed Sep 22, 2010 9:42 pm

mitcorb wrote:@ThomThom:
This looks like a good step toward selecting loops.

Yea - something like that is also needed.


EarthMover wrote:I can never seem to get Fredo's to work.

There is a plugin like this already?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby EarthMover » Wed Sep 22, 2010 9:53 pm

There is an option to within Hover Select to select curves, but it rarely works for me.
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby DIEGO-RODRIGUEZ » Thu Sep 23, 2010 2:36 am

thom thank you very much.
This tool is very useful.
Questions?
from this new tool. is possible to create a tool for selecting multiple lines with a single click?
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby jeff hammond » Thu Sep 23, 2010 2:46 am

DIEGO-RODRIGUEZ wrote:thom thank you very much.
This tool is very useful.
Questions?
from this new tool. is possible to create a tool for selecting multiple lines with a single click?


i'm thinking quite a few people would be into that but it's probably a lot more involved than we(non-programmers) think..

[even thom himself liked the idea in the following thread :D]
viewtopic.php?f=323&t=30457&p=267469
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Thu Sep 23, 2010 7:27 am

The problem is defining the rules for which lines to select. I find that SU models often has much more irregular meshes than in some other types of modellers where you have regular quad faces (quad-faces that doesn't need to be co-planar).
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby mitcorb » Thu Sep 23, 2010 12:27 pm

I think it is like Jeff said. You'd probably need some kind of filter(adjustable perhaps)that scouts for forks or deviations within a "cone of vision" such that it would find the most direct route. Sort of like that salesman's map algorithm that looks for the optimal routes for a circuit.
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby watkins » Thu Sep 23, 2010 6:31 pm

Dear Thomas,

Can your script be modified to both find a 'circle' and to 'recreate' that 'circle' so that it has the correct entity assignment (not a curve, nor an arc, but a circle).

When a solid is made by revolving a closed profile about an axis (see the attached jpeg) the circles so formed are made up of individual edges, and so the circles do not have the entity assignment 'circle'.

There are many occasions when I need the circles to be circles. Is this something that can be done? A proper 'revolve' tool would be even better. The tool would allow a closed profile to be revolved about an axis (in the plane of the profile) such that all the circles so formed were circles. An option to place a cpoint at the centre of each circle would be the icing on the cake.

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Thu Sep 23, 2010 7:00 pm

hm... recreate a curve into a proper circle entity when it's attached to faces... hm.... not sure if/how it can be done...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby ken28875 » Sat Sep 25, 2010 9:56 am

Yes, finally you wrote this script. :berserk: :thumb:

It will save me so much time compared to selecting edges one by one.

It was a request I made back in March.
http://forums.sketchucation.com/viewtopic.php?f=323&t=26957

I noticed that selecting the curve works only if the perpendicular edges to the one we pick are hidden. For the next release, would it be possible to be able to select invisible edges, as well as selecting the looping curve when all the edges are visible?

Thank you so much, Thomas!

_KN
0
Follow Your Dreams.
User avatar
ken28875 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Sat Sep 25, 2010 10:09 am

ken28875 wrote:I noticed that selecting the curve works only if the perpendicular edges to the one we pick are hidden. For the next release, would it be possible to be able to select invisible edges, as well as selecting the looping curve when all the edges are visible?

This is related to the discussion earlier in this thread - going by only visible edges between forks is an easy filter. If you are to take into account all edges, then things gets more complicated in determining the path to choose.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby ken28875 » Sun Sep 26, 2010 5:07 am

Hi Thomas,

I was working on this project Friday night and spent a lot of time selecting each of the edges of the circle. Then I took a break by visiting Sketchucation. And guess what, I saw your Select Curve plugin thread. I was like, wow just what I needed! Thomas you're the man. :thumb:

I was mentioning to you about the possibility of selecting the hidden edges of the curve. I did actually find a plugin that does the trick. I don't know who wrote it, but it's called "Connected edges by Angle" and it works just fine.

I also find out that you posted a bunch of new awesome plugins this past few weeks. Thank you so much for taking time to write them. I will feed you some cookies.

Anyway, here are some images of what I was working on that needed your Select Curve last night.

All the Best,

_KN



0
Follow Your Dreams.
User avatar
ken28875 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Sun Sep 26, 2010 11:25 am

ken28875 wrote:I was mentioning to you about the possibility of selecting the hidden edges of the curve. I did actually find a plugin that does the trick. I don't know who wrote it, but it's called "Connected edges by Angle" and it works just fine.

Oh yea - that is a feature in Selection Toys. :D
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby Dave R » Sun Sep 26, 2010 1:02 pm

watkins wrote:Dear Thomas,

Can your script be modified to both find a 'circle' and to 'recreate' that 'circle' so that it has the correct entity assignment (not a curve, nor an arc, but a circle).

Kind regards,
Bob


Dear Bob,

Although it won't change the Entity description from 'Curve' to 'Circle', Weld.rb will at least make it select like a circle. Would that help?
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] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Sun Sep 26, 2010 1:04 pm

Ken - what kind of machine are you creating there?? :shock: :o
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby ken28875 » Mon Sep 27, 2010 4:50 am

thomthom wrote:Ken - what kind of machine are you creating there?? :shock: :o


Hi Thomas,

I am working on a time traveling machine. I will go back 15 years ago when I was an architecture student and will create Sketchup so I can do crazy stuff instead of using pencil, markers, spray paints, and tracing paper. ;)

Just kidding. :D

It is for a contest I am doing that is due next month. http://news.deviantart.com/article/128272/

You can see some of the WIP here: http://forums.sketchucation.com/viewtopic.php?f=81&t=27030

Have a nice week!

_KN
0
Follow Your Dreams.
User avatar
ken28875 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Mon Sep 27, 2010 7:10 am

Ooh, sweet prices. I don't really pay attention any more what goes on at dA...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby watkins » Mon Sep 27, 2010 10:33 am

Dear David,

My usual method is as follows:

a) Find the centre of the broken circle, and mark with a cpoint.
b) Using the cpoint, draw a circle over the broken circle and delete any unwanted face so formed.
c) Use move+copy to move copies of the reconstructed circle entity up/down to recreate other broken circles.

For point c), think of a simple circular flange and copying the top outer edge to the bottom outer edge (same diameter)using move+copy.

The above method reconstructs the circle and re-assigns the entity 'circle' to the feature, but it takes time and one has to be careful to delete unwanted faces.

Yes, I could use weld, but the resulting feature has the assignment 'curve' rather than circle, which excludes the use of 'point at centre', which I use frequently for alignment. Chris Fullmer's Arc Centrepoint Finder has helped enormously, but it would be nice to revolve a shape and have circles formed. Thank you for considering my request.

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Mon Sep 27, 2010 10:44 am

So simply drawing an arc or circle over an broken acr/circle mends it? hmmm

I already have the code to find the centre of exploded curves...
viewtopic.php?f=323&t=30506&p=267835&hilit=[Plugin]#p267835
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby winooo » Tue Sep 28, 2010 9:39 pm

Awesome,thx :sketchstatic:
0
User avatar
winooo 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby horizon » Wed Aug 03, 2011 7:32 am

I have managed to install your select curve on my laptop running xp but it will not load on my desktop running win 7... i wonder if there is an issue with it being a 64 bit machine?
0

horizon 
 

Re: [Plugin] Select Curve (1.0.0) — 22 September 2010

Postby thomthom » Wed Aug 03, 2011 9:26 pm

64bit is no issue. I run 64bit Win7.

Do you get any errors or anything?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Select Curve

Postby Orthogon » Sat Jan 25, 2014 7:56 pm

Excellent, works cleanly. But wondering why it isn't added to the right-click context menu, where one usually looks for such things -?
0

Orthogon 
 

Re: [Plugin] Select Curve

Postby Mythos » Mon May 12, 2014 10:13 am

Thank you very much for this plugin. I like a lot! I want to propose a little improvement: Would it be possible to let the user even click on a face to automatically select all edges by this tool?
0

Mythos 
 

Re: [Plugin] Select Curve

Postby Dave R » Mon May 12, 2014 10:32 pm

Although the "improvement" might be possible, since you'd already have the Select tool active, why not just double click on the face? That would select all of the bounding edges of the face without the added step of activating a plugin.
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
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 16 guests

Visit our sponsors: