## [Obsolete] Offset On Surface (v1.0)

### [Obsolete] Offset On Surface (v1.0)

[Edit 15 Sep 09] new version 1.5 available with more shapes, Eraser and Contour Edition, see http://forums.sketchucation.com/viewtopic.php?f=323&t=11212&hilit=plugin#p76625.

[EDIT 12 May 08]
Offset on Surface is now part of a suite of tools to draw on Surface. See new thread at http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=9637#p60512. So, the version below is now older.

Here is the first version of this script that has been suggested by members of the forum.

In short, it tries to mimic the native Sketchup Offset tool, but on surface, not just on a single face. Below is a sample which is self-explanatory.

OffsetOnSurface Sample.jpg

Actually, the script was not so easy to design, as there is no real mathematical concept of distance and angle on surfaces and the number of possible topologies is rather huge. So there are many limitations and approximations in this version.

Installation: Do an 'Extract All' in the Plugins folder, which should copy
• OffsetOnSurface.rb, the main script
• LibTraductor.rb, for language translation (same version as for JointPushPull and BezierSpline)
• A subfolder OFS_Dir containing the icons and cursors as well as the doc in PDF format
The script works on a selection of edges and faces. It provides 2 modes of selection:
• Explicit --> you select first and then start the tool
• Implicit --> you start the tool with NO selection. Then by mouseover in the model, the script will select a surface
There are several options, all explained in the doc, and some other details (like the question of inner and outer contours in selections). They are all available in the contextual menu or by toggle function keys (there is no dialog box):
• F5 --> toggle between Outer, Inner and All contours of a surface
• F6 --> generate as Group
• F7 --> Treat surface as isolated from the rest of the model
• F8 --> generate faces when offset is external
• F9 --> generate contour as curves

Finally there are numerous limitations, and surely many bugs. I have a list of things to improve, but I'll be grateful to the first users to give feedback.
2
Last edited by fredo6 on Tue Dec 15, 2009 3:48 pm, edited 4 times in total.

fredo6
PluginStore Author

### Re: [Plugin] Offset On Surface (v1.0)

Thanks for putting the time and effort into creating this Fred

I shall give it a try now

Edit: This is looking fantastic! It will really help on the landscape side of things.
0

dylan

### Re: [Plugin] Offset On Surface (v1.0)

Thank you SO much! This is extremely helpful!!
0
Jon
KT Team member

Jon

### Re: [Plugin] Offset On Surface (v1.0)

WOWWWW. I just tried it and i can´t believe the results. It´s AMAZING!!!!!

Looks like it has a lot of options... so i will read the manual, but the first things that I tried and see exceeded everything what I could have imagined.

The standard offset tool looks prehistoric compared with your version.

My SketchUp should say at startup: "SketchUp. Powered by Fredo6"

Thank you!!!
Daniel S
0

Daniel S

### Re: [Plugin] Offset On Surface (v1.0)

This is a feature actually.
If you show hidden geometry, I found more useful to keep the behavior of the implicit selection by mouseover rather than to just select an individual face, which you can just do explictly by clicking on the face and launching the OOS tool (or use the native Sketchup Offset).
1

fredo6
PluginStore Author

### Re: [Plugin] Offset On Surface (v1.0)

Superb!
0
--pupil forever...------

urgen

### Re: [Plugin] Offset On Surface (v1.0)

Thanks for creating this and making it publicly available.
0
Save the Earth, it's the only planet with chocolate.

juju

### Re: [Plugin] Offset On Surface (v1.0)

Thanks, cant wait to try it...
0

Pixero

### Re: [Plugin] Offset On Surface (v1.0)

Many tanks.
Expecially for the time you spend to make Sketchup easiest for everyone!
We all appreciate that!
0

Gjenio

### Re: [Plugin] Offset On Surface (v1.0)

Fantastic! Thank you very, very much. So useful for me too...
0

marne

### Re: [Plugin] Offset On Surface (v1.0)

works in most scenarios! THANKS
0

a4chitect
PluginStore Author

### Re: [Plugin] Offset On Surface (v1.0)

i add some: Thank you!
0

ilay7k

### Re: [Plugin] Offset On Surface (v1.0)

just went through the documentation and tried few things myself - AMAZING!!!

i'm sure only releasing your scripts OOS and JPP implemented into sketchup would justify calling it a v7.0
0

a4chitect
PluginStore Author

### Re: [Plugin] Offset On Surface (v1.0)

a4chitect wrote:i'm sure only releasing your scripts OOS and JPP implemented into sketchup would justify calling it a v7.0

Now now, don't go and give Google any ideas about slacking off.
0
Save the Earth, it's the only planet with chocolate.

juju

### Re: [Plugin] Offset On Surface (v1.0)

Good stuff fred, i dont know what more i can add than to say that your plugins feel like fully fledged features in use. Thank you.
0

remus

### Re: [Plugin] Offset On Surface (v1.0)

This is cool.

With all the 'organics' plugins being released lately (FFD,joint pushpull, catmull clark subd, etc...), isn't it time to combine all those plugins into one bigger plugin?

Having just one dropdown menu or panel for all these jewels would be a big time saver and much easier to use.
0

kwistenbiebel

### Re: [Plugin] Offset On Surface (v1.0)

catmull ?
0
sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

Jorgensen

### Re: [Plugin] Offset On Surface (v1.0)

Hi Fred

Many thanks again and again.
Your scrips are simply the most important and useful
produced to date without a doubt.

Just what SU should have had in the first place.
Bread and butter tools.
What else to say ??

dtr
0

dtrarch

### Re: [Plugin] Offset On Surface (v1.0)

Yes Coen, that's a good trick to use short cut keys.
But I meant 'time saver' as it would be easier for noob modelers to pick up one 'organics' plugin than to go browse forums to gather the separate scripts, find out what they do and install them.
This is not a crit, just a call to get things streamlined.

I can imagine that for a lot of people who don't visit SCF on a daily base like we do, it is easy to miss out on some of the nice scripts.Being able to download them as a package would be nice. Preferably with a shared interface and one tutorial doc ?
0

kwistenbiebel

### Re: [Plugin] Offset On Surface (v1.0)

Thank you very much Fredo. This, along with JPP is very useful. Just for fun I did a little demo. Also used the Skin plugin, too. If you're interested, here it is. Sorry about the low resolution.
0
Etaoin Shrdlu

%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%

Dave R
Global Moderator

### Re: [Plugin] Offset On Surface (v1.0)

wonderful !!! many thanks
0
happiness on the way, not in the destination.

huyvuvn

### Re: [Plugin] Offset On Surface (v1.0)

Coen Naninck wrote:
kwistenbiebel wrote:With all the 'organics' plugins being released lately (FFD,joint pushpull, catmull clark subd, etc...), isn't it time to combine all those plugins into one bigger plugin?

Hi there ,

what's "catmull clark subd" plugin ? I can not find it in this forum, please give me the link , many thanks
0
happiness on the way, not in the destination.

huyvuvn

### Bug > Context Menu reports opposite states?

Fredo:

When I look at the context menu, all but "Generate as Group" seem to report just the opposite of what the tool is doing.... the Yes's should be No's and vice versa.

Anyone else seeing this?

Regards, John

p.s. Excuse me, I should have begun with, 'incredible scripting and support documentation, I am amazed as I watch it work. Thank you' .
0
Last edited by JClements on Fri Apr 11, 2008 7:33 pm, edited 4 times in total.
John | Illustrator | Beaverton, Oregon

JClements

### Re: [Plugin] Offset On Surface (v1.0)

Fredo, it has all been said allready,
but after trying the script all I can ad is
thanks,
erikB
0

erikB

### Re: [Plugin] Offset On Surface (v1.0)

Thanks to all for your encouragements. I appreciate.

I found a number of bugs in the current version which I will try to fix over the next 10 days, if hopefully I can find some time.

I would also appreciate if you could give some feedback on a few points:

1) Inference of the Red Point: I had the choice to have the Red point follow the surface or stick to a constant line independent from the surface. Because you cannot move the cursor in Ruby, I needed to manage the 'projection' of the mouse cursor, to the surface, but then, it's not easy to use inference vis-a-vis the rest of the model, except for plane surface. So is inference useful for an Offset operation?

2) Enter distance AFTER Offset operation: in most Sketchup tools, you can usually modify again some parameters after you perform the operation. In the case of my tool, this is doable, though not extremely easy, as I would have to use the Sketchup Undo, retrieve the original selection (Undo may create new Faces and Edges objects, not restore the same), and then re-launch the Offset operation. As I am not sure Offset On Surface is to be used frequently and also because the 'retry' can be done manually, I don't know if it is worth trying to address this problem

Finally, I could recycle the work I did for OOS to derive a script 'DrapeOnSurface' that would take a selection of faces and edges on a plane and drape them onto a surface. The SandBox 'Drape' does this, but 'by projection' only. In addition you have to orient the surface more or less in the horizontal plane (as for anything with the Sandbox) and position the component to be draped above. DrapeOnSurface would instead be independent of orientations and positioning, will work by extension, not by projection, allowing to preserve distances and fully drape around for instance a close cylinder. In addition, it can create a group with the generated surface (mould option).

Thanks to all again

Fredo
0

fredo6
PluginStore Author

### Re: [Plugin] Offset On Surface (v1.0)

Fredo, you took the words right out of my mouth. I was thinking of asking you earlier this morning to consider revising SU's Drape tool because it only works on the "vertical" access, but I thought that might be a bit too much to ask for so soon after the time you've been spending on the 3D offset script.

Ahem..... so while you opened the subject a do-over of the SU's Smooth Tool might also be appreciated by this crowd as it has similar limitations as the Drape tool. [SoapSkin&Bubbles could "suck" up a surface without being confined to the vertical axis and also protect the outside edges of a surface from being distorted, but doesn't seem that SoapBubbles will be supported.] Also, there could be further enhancements that would be useful such as:
1- an simple way to input how much "pull" is to be exerted
2- not limiting the shape of smoothing area to a circle. If possible, allow the user to define the bounds from a preselected shape in a manner similar to the Drape tool.
0
John | Illustrator | Beaverton, Oregon

JClements

### Re: [Plugin] Offset On Surface (v1.0)

This is fantastic.
I feel like a kid in a candy store. Like when I first discovered SU.
This together with JPP... man!
0

boofredlay
Global Moderator

### Re: [Plugin] Offset On Surface (v1.0)

Yeah I had that same feeling Eric when testing it and to think now there is the possibility of progressing this script even further with the drape tool is fantastic.
0

dylan

### Re: [Plugin] Offset On Surface (v1.0)

1) Inference of the Red Point:
Perhaps this can be useful (i don´t know if I understand well this feature)

2) Enter distance AFTER Offset operation:
I think this is not necessary... and if it is complicated will be better to try other things to improve.. when the distance of the offset is big the surface changes his shape a little. But the current version gives really amazing results.

Again thank you for this tool (and the other ones!). The Explicit / Implicit selection is a great idea, very useful and works very well.

The DrapeOnSurface sounds great too!

Thank you!!!
Daniel S
-1

Daniel S

### Re: [Plugin] Offset On Surface (v1.0)

Hi Fred. Just wanted to add my 2 cents and say 'much appreciated' for the fine work you've done on this and your other plugins. They truly make a difference in not only the ease-of-use of SU, but in whether or not one even choses SU to create models with. Thanks a bunch!
0

chippwalters