[Plugin] SurfaceGen (0.9.0b) — 28 April 2012
69 posts
• Page 1 of 3 • 1, 2, 3
Re: [Plugin] SurfaceGenNice! Can't wait some more complex math sculptures... and naturally even more functionality, like with K3DSurf.
Little test... Please, register (free) to access all the attachments on the forums.
Last edited by notareal on Fri Apr 29, 2011 5:01 pm, edited 1 time in total.
Welcome to try Thea Render, Thea support | kerkythea.net -team member
Re: [Plugin] SurfaceGenFor example...
When right clicking a tagged 'surfacegen-group'. Explode the special surgfacegen-group and right-click gives
Erase that 'bounds' Instance then Select the surface...
These all relate to 'recurve' reaction to 'surfacegen' entities ? I did have a surgacegen error but I can't get it to reproduce now TIG
Re: [Plugin] SurfaceGen
Thank you for this, and considering my suggestions too! "There is a man in the world who will never be turned down... he is the man who delivers the goods."
Re: [Plugin] SurfaceGenIn the V6
We can draw the "Box" but dialog's window don't opening No error message, nothing in the Ruby console
Re: [Plugin] SurfaceGen@notareal
That's really nice! What's the equation you used? @TIG Make sure you have the latest version of Recurve. I fixed that bug with the last update which is why I couldn't reproduce the error. If you ever get the SurfaceGen error again let me know. @Pilou Just re-select the group with the select tool. It seems that the SelectionObserver doesn't fire when the selection is changed in code.
Re: [Plugin] SurfaceGenYou are right, in that when I get v1.4 of 'recurve' I no longer get these errors with 'surfacegen'. However, I had v1.3 [with SUpv8] and there were no major changes except for making it SUpv6 friendly ?
Anyway... no more error messages... I'll try to break it TIG
Re: [Plugin] SurfaceGenSponge-like object:
Please, register (free) to access all the attachments on the forums.
Re: [Plugin] SurfaceGenthis is great,
some odd behavior on the Mac... when run from plugins (like you should) I get this
if I put the surfacegen.rb into the folder do a restart and then load from Ruby Code Editor, I get this
but if I restart again and use as_pluginloader.rb to load it I get
it works, but has no tool button image... Please, register (free) to access all the attachments on the forums.
Re: [Plugin] SurfaceGen
There is plenty more at the k3dsurf forum. Welcome to try Thea Render, Thea support | kerkythea.net -team member
Re: [Plugin] SurfaceGenPerhaps you could add some more functionality; like functions min, max and abs. Also allow use of arithmetic operations and pi in axes, like -2*pi.
Welcome to try Thea Render, Thea support | kerkythea.net -team member
Re: [Plugin] SurfaceGenYou already have 'pi' [in lowercase] as a function?
Please, register (free) to access all the attachments on the forums. TIG
Re: [Plugin] SurfaceGen
The SelectionObserver has always been very buggy: http://www.thomthom.net/software/sketchup/observers/ Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
Re: [Plugin] SurfaceGenJust uploaded a fairly major update to the first post!
@driven This should fix the issues with macs. It now uses cross-platform methods to locate and load resource, and uses show_modal rather than show on macs with the WebDialog. @notareal The axes now let you use an expression such as 2*pi @d12dozr Helpful error message are now shown when an expression is invalid.
Re: [Plugin] SurfaceGenThanks
Line #270 result.add @p0 if @state >= 0 can raise an error so adjusting it to return if !@p0 or @p0.class!=Geom::Point3d; result.add @p0 if @state >= 0 might help - you could also add similar validity checks on the other points that are added to the extents ? TIG
Re: [Plugin] SurfaceGenAh, I knew I'd forgotten something
I've updated the first post. It shouldn't show those errors anymore.
Re: [Plugin] SurfaceGenCool.
The 'rand' function is also interesting... Please, register (free) to access all the attachments on the forums. TIG
Re: [Plugin] SurfaceGenI'm sure it's simple but..
Can I re-size the user window? Can't see the generate button. Please, register (free) to access all the attachments on the forums.
Re: [Plugin] SurfaceGenJust updated again fixing a small bug with the expression parser.
Check out this graph: Equation = min(((max(abs(y)-(2*sqrt(z+4)) ,(x+0.5*abs((abs(y)+4)/3.5)/(1+(((abs(y)+4)/3.5)^2-2)^2)/2 *2/(1+(z-2)^2)+abs(y/1.5)^3.5/7 ) )*max( max( abs(x+0.15+(y/0.7)^2)+(z-1.3)/1.4,max(z-2.3, max( abs(x+0)/2.4 -1+2*abs(1.5*y)+(z+0.1)/2 , -z ))) ,x-0.8+z/2)-0.1 )*(abs(x+y^2/3)-0.2+abs(abs(z+1.8)-(0.5-(y/2)^2) )^1.2 )-0.1 ),( (x+1.2+abs(y)/10)^2+(abs(y)-1.1)^2/2.5+(z-2.3)^2/1.8-0.64)) x: -3 to 1 y: -4 to 4 z: -4 to 5.4 @TIG Yes you can use any built in ruby function;) @jim I can't make the window resizable because it is shown and hidden by resizing it to a fixed value and zero respectively, and there is no API function to get the size of the window to save it. However, you can easily change the height of the window. Open surfacegen.rb in notepad and change the line "WINDOW_HEIGHT = 320" to about "WINDOW_HEIGHT = 350". You can try different values until you get what you want.
Re: [Plugin] SurfaceGenyes,
working on the mac... I don't know if I downloaded before or after your latest tweak, is there a version number somewhere on the files? another thing, is it possible to have a 'use last' settings option? playing around with the box size on the head requires [re]inputting the data each time cheers john
Re: [Plugin] SurfaceGenIf you need to use the same settings as last time just copy and paste the graph, and then change the settings you need to. All the settings are stored as attributes of the graph so will be copied with it. If you need to change the size you can use the scale tool just as easily as creating a new graph.
Re: [Plugin] SurfaceGen
Also now in axes... get improvement with other functions too Welcome to try Thea Render, Thea support | kerkythea.net -team member
Re: [Plugin] SurfaceGenBTW.. the varying size of content seen by jim is most likely due to your using [ font-size: 8pt; ] as although 1px=0.75pt different browsers treat pt oddly,
with safari, in SU, on my mac 8pt is reading as 8px and everything fits if a bit small.
Re: [Plugin] SurfaceGen
Thanks. 380 let's me see the generate button. Hope it's not a bother, but also the width. Can that be increased? Actually, no need. It was because I have the font size of win 7 bumped up one step. So it's okay. Thanks again. Last edited by jim4366 on Sat Apr 30, 2011 4:37 pm, edited 1 time in total.
Re: [Plugin] SurfaceGenGot some inspiration from http://abdelhamid394.blogspot.com/
Please, register (free) to access all the attachments on the forums. Welcome to try Thea Render, Thea support | kerkythea.net -team member
Re: [Plugin] SurfaceGenThis is very cool.
Two questions: Is there any noise available? If not that would be a great addition. I've tried with rand but that isn't noise. A few links to good sites with functions and equations for surfaces would also help getting up to speed.
Re: [Plugin] SurfaceGenI've updated the first post with version 0.8.
@Pixero What exactly do you mean by noise? Surely just adding (rand-0.5) will put noise on the graph?
Re: [Plugin] SurfaceGenThanks, Diggsey.
Just a minor annoyance. Since the dialog steals the focsus, whenever I select a Surface, my SU shortcuts don't work. For example, select the Surface to move it - press the 'm' shortcut to Move it - can't Move it because the dialog got the keypress.
Re: [Plugin] SurfaceGenUnfortunately, I don't think there's a way to give focus back to SketchUp from ruby. (Someone correct me if I'm wrong!)
Re: [Plugin] SurfaceGenI don't think so either, and I realize a small change in workflow is all that's required - but as the saying goes "old habits die hard." No worries.
Re: [Plugin] SurfaceGenIf you pick a surfacegen-entity the surfacegen-dialog appears.
Minimize that surfacegen-dialog. The focus will then return to the SKP window. So now you can use shortcuts etc to Move the selected entity etc. Restore the surfacegen-dialog to change the surfacegen-entity's settings... TIG
SketchUcation One-Liner AdvertsNeed Authorised SketchUp Training by experts in various disciplines? Check out our Training details.
69 posts
• Page 1 of 3 • 1, 2, 3
|