SketchUcation Premium Membership

 

 

[Plugin] Round Edge - v1.0 (by Bezier)

[Plugin] Round Edge - v1.0 (by Bezier)

Postby fredo6 » Mon Jun 09, 2008 9:23 pm

[Edit 9 Jul 09] I published a new script, RoundCorner 2.0, which does true rounding at corners (and keep te Sharp mode). You may consider to use this script instead.
Snap17.jpg

Here is the link to the main post of that thread.http://forums.sketchucation.com/viewtopic.php?f=180&t=20485&hilit=plugin


-----------------------------------------

Here is a script that typically would round the edges and corners of a cube. As I still don't get the subtle differences between Bevel and Chamfer, I simply called it RoundEdge. The picture below gives some idea of what it intends to do.
SampleRoundEdge.jpg

There's still a lot of work to do, as you can guess that the topological situations are numerous enough that you have to treat many cases. So this is very a first version, with profiles of the rounding shape generated with Bezier curves, to ensure the tangency at the intersection with original faces.

Though I am not totally sure, I anticipate that the tool can be extended to support custom profiles.

Doc is attached in PDF in the subfolder RDE_DIR (only in English for the time being).
It should work in Sketchup v5 and v6, and on PC or Mac (thanks to confirm). As usual, the button coming in the toolbar is my own artistic design (I guess you would notice anyway :ecstatic: )
Please, register (free) to access all the attachments on the forums.
Last edited by fredo6 on Mon Aug 22, 2011 10:41 pm, edited 5 times in total.
fredo6
Top SketchUcator
 
Posts: 1666
Joined: Mon Nov 12, 2007 9:07 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby remus » Mon Jun 09, 2008 9:24 pm

:fro: sweet fred, another wicked pugin.
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby remus » Mon Jun 09, 2008 9:40 pm

Damm, well i installe dit and its not working. I select a few edges, run the script and it doesnt do anyhing apart from change the cursor to a little 'invalid selection' thing.

This is what the ruby console says:
Code: Select all
Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d>
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:229:in `intersect_line_plane'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:229:in `compute_borders_at_edge_end'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:303:in `construct_edge'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:165:in `construct_all_vertices'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:164:in `each'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:164:in `construct_all_vertices'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:163:in `each'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:163:in `construct_all_vertices'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:539:in `execute_drawing'
C:/Program Files/Google/Google SketchUp 6/Plugins/BzRoundEdge.rb:667:in `onLButtonUp'
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby fredo6 » Mon Jun 09, 2008 9:53 pm

Remus,

Sorry for this. A last minute problem and I took the wrong version.
I reloaded one on the main message that should work.

Fredo
fredo6
Top SketchUcator
 
Posts: 1666
Joined: Mon Nov 12, 2007 9:07 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby remus » Mon Jun 09, 2008 9:59 pm

Cheers fred, works like a charm.
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: remus

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby kwistenbiebel » Mon Jun 09, 2008 10:48 pm

Cool Fredo!
This is one the render geeks appreciate :)
Thank you!
kwistenbiebel
 
Posts: 2666
Joined: Thu Nov 22, 2007 6:13 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Daniel S » Tue Jun 10, 2008 1:46 am

Thank you Fredo!!! :ecstatic: :ecstatic:
I didn´t imagine that you were going to surprise us so soon with another awesome plugin :ecstatic:

Your assumption that only edges that are not ‘Soft’, ‘Hidden’ or ‘Soft’ can be selected is a great idea and the Explicit and Implicit selection is fantastic too.

I tried the plugin and the problems that I have are the ones of the "known problems" on the PDF. Hope that you can fix the issues of Adjacent Convex and Concave edges and the Sheared surfaces before the incorporation of the custom profiles feature. Perhaps will add to the list of problems when there is something like the attached image.

Thank you again Fredo!,
Daniel S

P.S. I´m thinking: If only one person can make all this incredible plugins so quick with limited time... what the SU team working full time on SketchUp will bring to us on SU7??
Please, register (free) to access all the attachments on the forums.
Daniel S
 
Posts: 349
Joined: Mon Nov 12, 2007 6:06 pm
Location: Mar del Plata, Buenos Aires, Argentina

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby kwistenbiebel » Tue Jun 10, 2008 1:55 am

Daniel S wrote:P.S. I´m thinking: If only one person can make all this incredible plugins so quick with limited time... what the SU team working full time on SketchUp will bring to us on SU7??


Don't start :evil: .

...but I recently imagined them (G-team) scratching their heads saying: 'are these GE tools gonna be enough?' , while the other one replies 'Not a problem,mate,we make things for the masses, not for a CG niche market'....' Pffw,Oh good, well I am off then, it seems the wind is gaining strength, time to hit the waves, cheerio'...etc... :D
kwistenbiebel
 
Posts: 2666
Joined: Thu Nov 22, 2007 6:13 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Whaat » Tue Jun 10, 2008 3:24 am

kudos on the wicked looking plugin! Looking forward to playing with it!
Whaat
 
Posts: 966
Joined: Wed Nov 14, 2007 9:51 pm
Location: Saskatchewan, Canada
Name: Dale Martens
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby kmead » Tue Jun 10, 2008 3:50 am

Wow, very nice indeed. This has been asked for many many times over the last few years. And very nicely executed.

I do have a quibble which may or may not be shared by all:

The intersection of the rounded edges should meet in a semi-spherical intersection when three arcs meet at a corner, versus the hipped or groined intersection that is now occurring.

In any case, another very appreciated remarkable piece of work.

All the best and thank you.

Karl Mead
User avatar
kmead
 
Posts: 111
Joined: Wed Nov 21, 2007 3:08 am
Location: Grand Rapids, MI
Name: Karl Mead

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby tomislavm » Tue Jun 10, 2008 9:51 am

Thank You!
I like this ruby and it works good!
All the best and thank you again!
tomislavm
 
Posts: 421
Joined: Wed Nov 21, 2007 9:35 am
Location: Croatia,Osijek
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Macs » Tue Jun 10, 2008 10:10 am

How to make a 10 sided dice...
just combo some SU scripts! total time 5 minutes
great work Fredo! :thumb: :thumb:
Please, register (free) to access all the attachments on the forums.
Macs
 
Posts: 18
Joined: Thu Apr 24, 2008 9:59 am

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Dylan » Tue Jun 10, 2008 12:29 pm

Fredo this is just fantastic, Thankyou! :thumb:
Dylan
 
Posts: 1932
Joined: Mon Oct 22, 2007 1:41 pm
Location: Royston (Herts), UK
Name: Dylan Morton

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby mateo soletic » Tue Jun 10, 2008 12:34 pm

Fredo,
Thank You very much.
mateo soletic
 
Posts: 1184
Joined: Mon Nov 12, 2007 6:04 pm
Location: Dubrovnik,Croatia

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Juju » Tue Jun 10, 2008 1:19 pm

Nice! Thanks!
Save the Earth, it's the only planet with chocolate.



Keeping things organised is not a sin. ;)
Juju
 
Posts: 1127
Joined: Mon Oct 22, 2007 1:45 pm
Location: Durbanville, Cape Town, South Africa.
Name: Julian Smith

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby STRANGEZOND » Tue Jun 10, 2008 1:45 pm

Thanks! Very useful!
STRANGEZOND
 
Posts: 4
Joined: Sat Mar 22, 2008 7:35 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby dtrarch » Tue Jun 10, 2008 3:17 pm

Hi Fredo

I thought this would never show up.
Simply amazing and thank you so very much.

dtr
dtrarch
Premium Member
Premium Member
 
Posts: 343
Joined: Tue Nov 13, 2007 8:03 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby boofredlay » Tue Jun 10, 2008 4:01 pm

Thank you!
User avatar
boofredlay
Global Moderator
 
Posts: 9006
Joined: Mon Oct 22, 2007 1:50 pm
Location: Huntsville/Madison Alabama
Name: Eric Lay
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby urgen » Tue Jun 10, 2008 4:07 pm

...CO-O-O-O-O-O-O-O-O-O-O-O-OL! :thumb: :bounce: :D

Please, register (free) to access all the attachments on the forums.
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Pilou » Tue Jun 10, 2008 4:54 pm

A cousin of TopMod? ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10034
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby urgen » Tue Jun 10, 2008 5:19 pm

...standart shape (components)+Round Edge - v1.0 ...delete some faces ;) :D
Please, register (free) to access all the attachments on the forums.
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby TomDC » Tue Jun 10, 2008 7:52 pm

Thank you! Very cool.
Bill Maher on the French: "They invented sex during the day, lingerie and the tongue."
TomDC
 
Posts: 2931
Joined: Mon Nov 12, 2007 1:16 pm
Location: Behind you.

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby breezmisha » Tue Jun 10, 2008 7:55 pm

(= all try not wait! thanks great! :ecstatic:
breezmisha
 
Posts: 3
Joined: Thu May 22, 2008 11:42 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby Ben Ritter » Tue Jun 10, 2008 8:54 pm

Fredo,

Thank you very much.
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby cnicolapc » Tue Jun 10, 2008 9:02 pm

Thank You very much.
cnicolapc
 
Posts: 1
Joined: Sat May 03, 2008 7:56 am

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby fredo6 » Tue Jun 10, 2008 10:45 pm

kmead wrote:I do have a quibble which may or may not be shared by all:

The intersection of the rounded edges should meet in a semi-spherical intersection when three arcs meet at a corner, versus the hipped or groined intersection that is now occurring.


I think it would be manageable to make a 'polished, round' join for 3 edges, whatever is their orientation. It's probably a geometrical headache, but the method would be mathematically exact, and imply no surface intersection.

This is simply based on the remark that if the 3 edges are mutually orthogonal, as in a cube, you can draw a spherical join. Then, because you can always transform geometrically 3 edges with any orientations into orthogonal axes (via 3 plane shear transformations), you could deform the join as well with these transformations. This would give a junction with no groined intersection. This would work for 2 edges too.

For 4 edges or more, I am not sure there is a geometrical shear transformation, preserving parallels, that could allow to transform them into a regular topology. But maybe I am wrong!

Anyway, this is just for future work, but it's an interesting idea to explore.
fredo6
Top SketchUcator
 
Posts: 1666
Joined: Mon Nov 12, 2007 9:07 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby scottpara » Wed Jun 11, 2008 1:59 am

I tried the ruby and I am impressed just in the time savings involved. My question is why is it still making hard corners? The far cube is from the script the closest one is using the longer method of rounding the profile the extruding and then rounding the top and bottom flats. Am I missing something, as I thought this is what the result I would have got fromt he script.

Scott
Please, register (free) to access all the attachments on the forums.
Love the fact that some HATE my avatar.....
scottpara
 
Posts: 1091
Joined: Tue Nov 20, 2007 1:54 pm
Location: Around

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby fredo6 » Wed Jun 11, 2008 8:32 am

As said in my previous post, I need to check if it's manageable when edges have any orientation (I think it is), and also confirm that it only works for intersection of 2 or 3 edges only, not more.

Note also that the 'true' rounding generate much more faces at the corners.

The initial version was more a trial and is closer to the spirit of a FollowMe. The interest, in my mind, is that it should be capable to handle custom profiles, allowing to decorate edges with profiled shapes. It also helped me to check how Sketchup handles surface intersections (which you can see is not always perfect, due to precision problems).

So, don't worry, I keep the request in my list.
fredo6
Top SketchUcator
 
Posts: 1666
Joined: Mon Nov 12, 2007 9:07 pm

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby scottpara » Wed Jun 11, 2008 11:42 am

Thanks Fredo!
Love the fact that some HATE my avatar.....
scottpara
 
Posts: 1091
Joined: Tue Nov 20, 2007 1:54 pm
Location: Around

Re: [Plugin] Round Edge - v1.0 (by Bezier)

Postby marne » Wed Jun 11, 2008 1:05 pm

Wow! Thanks for this great plugin! This is a true little helper. :)
marne
 
Posts: 97
Joined: Mon Nov 12, 2007 2:57 pm
Location: Germany

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: No registered users and 8 guests