[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: )
0
Last edited by fredo6 on Mon Aug 22, 2011 10:41 pm, edited 5 times in total.
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

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

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

:fro: sweet fred, another wicked pugin.
0

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'
0

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
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

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

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

Cheers fred, works like a charm.
0

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!
0

kwistenbiebel 
 

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??
0

Daniel S 
 

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
0

kwistenbiebel 
 

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!
0

Whaat 
PluginStore Author
PluginStore Author
 

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
0
I created Dilbertville, sorry about that...
User avatar
kmead 
 

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!
0

tomislavm 
 

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:
0

Macs 
 

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

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

Fredo this is just fantastic, Thankyou! :thumb:
0

dylan 
 

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

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

Fredo,
Thank You very much.
0

mateo soletic 
 

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

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

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

juju 
 

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

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

Thanks! Very useful!
0

STRANGEZOND 
 

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
0

dtrarch 
Premium Member
Premium Member
 

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

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

Thank you!
0
User avatar
boofredlay 
Global Moderator
 

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

0
--pupil forever...------
User avatar
urgen 
 

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

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

A cousin of TopMod? ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

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
0
--pupil forever...------
User avatar
urgen 
 

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

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

Thank you! Very cool.
0
"I have a lot of beliefs, and I live by none of them." -Louis CK

TomDC 
 

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

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

(= all try not wait! thanks great! :ecstatic:
0

breezmisha 
 

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

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

Fredo,

Thank you very much.
0

Ben Ritter 
 

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

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

Thank You very much.
0

cnicolapc 
 

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.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

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
0
Love the fact that some HATE my avatar.....

scottpara 
 

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.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

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

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

Thanks Fredo!
0
Love the fact that some HATE my avatar.....

scottpara 
 

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. :)
0

marne 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: christbear, Google Bot, jarekdow and 5 guests

Visit our sponsors: