sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [PLUGIN] Voronoi + Conic Curve

    Scheduled Pinned Locked Moved Plugins
    136 Posts 53 Posters 222.3k Views 52 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pilouP Offline
      pilou
      last edited by

      Cool things in 3D πŸ˜‰

      http://matsysdesign.com/wp-content/uploads/2009/06/drawings_01_voronoi3d.jpg

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        @unknownuser said:

        Or something else

        Just image found on the Net πŸ˜‰

        But will be easy to make with your futur plug! β˜€

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • M Offline
          MattC
          last edited by

          Pilou You 're teasing me πŸ˜„
          Is it Sketchup ??
          Or something else?
          Well only step that I miss from those, is generation of 3D Voronoi πŸ˜„
          For rest I have plugins already.

          @ Joel, indeed there WAS a problem - file in first message is updated.
          Matt

          1 Reply Last reply Reply Quote 0
          • N Offline
            nektares
            last edited by

            Hey i always loved voronoi structures and iΒ΄m very interested on this plugin but when i try to use it i get this:

            Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d>
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:277:in point_in_polygon_2D' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:277:in voropoints'
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:267:in each' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:267:in voropoints'
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:128:in voronoi' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:105:in each'
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:105:in voronoi' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:36:in initialize'
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:384:in `new'
            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:384

            am i doing something wrong, i read carefully and i think itΒ΄s my SketchUp maybe?

            1 Reply Last reply Reply Quote 0
            • M Offline
              MattC
              last edited by

              Hi Can You attach sketchup file that is causing problems, or is it in general ?
              Matt

              1 Reply Last reply Reply Quote 0
              • T Offline
                the.pjt
                last edited by

                HI Matt ...
                πŸ˜„
                I have made some PNG Icons ,made a loader and toolbar , define Extention for your exelent codes , and developed them a bit πŸ˜‰
                added a custom cursor to the ConicCurveInFace.rb
                and removed the annoying UI message-box group counter from VoronoiXY.rb
                I have also added TIG's pointcloude script as a defoult part of it , and I also made a Icon for that tool too ( points cloud triangulation ) .. I also made codes nicely and full commented .. just for you dear main developer πŸ˜„

                suggestion for next versions :
                add a point cloud generator ruby tool
                add option to decide the resoult of VoronoiXY tool should be grouped or not
                add option (ConicCurveInFace.rb) that let user make ConicCurves from grouped face (resoult of VoronoiXY tool)
                add option (ConicCurveInFace.rb) that let user make ConicCurves from a set of selections .. no need to click and click and click ... πŸ˜„

                and ... thanks a lot for your great script


                to dear modorators : please please please don't delet this post !!! 😒 .. TIG says :
                Permission to use, copy, modify, and distribute this software for
                any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies... I didn't delete that copyright part .. and I also added TIG's name after his tool menu item ! πŸ˜‰ is there any copyright issue again ? [mod=:3b85s0b6]PLEASE GET/USE THE LATEST VERSION...
                FROM THE PluginStore...[/mod:3b85s0b6]


                voronoi_conic.zip

                1 Reply Last reply Reply Quote 0
                • T Offline
                  the.pjt
                  last edited by

                  here is the PSD files of ICONS


                  icons.zip

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    @the.pjt said:

                    to dear modorators : please please please don't delet this post !!

                    This one is ok - as it has explicit statement that it can be modified and distributed.
                    We do however prefer that the downloads for plugins at in the very first post of a plugin's thread. Otherwise it's hard for people to find the latest version if it is buried deep inside the thread. Could you agree with Matt whether that Matt puts the download in the first post - or you create a new thread where you maintain this modified version?

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • U Offline
                      unclex
                      last edited by

                      wonderful

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        the.pjt
                        last edited by

                        thanks a lot Matt ... πŸ˜‰
                        I wish my works have been helpful for you ...
                        and I'm glad for helpping you to have a nice plugin . πŸ˜„
                        I myself didn't have any problem with icons and I'm wondering why it can't handle the Icon folder path ... but thanks for learning me the right way of codding ... Matt
                        ... but you know ... I'm not a proggrammer .. 😞 , I wish I could code my sugestions .. and help you more than making some icons 😞

                        ..
                        thanks agane Matt .. have a nice tool πŸ˜„

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          notareal
                          last edited by

                          I'll be keeping eye on this. 3D... that would be great.

                          Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            Matt, the icons - did you put the icons in the correct folder? The change you did make it appear that you placed them in the root folder... ?

                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MattC
                              last edited by

                              the.pjt thanks for a hard work.
                              I
                              I must admit that that part of writing rubies is still unknown to me. I just concentrate on making my code running and not on wrapping it in a nice package as You did.
                              One question - as I downloaded Your files I could not access icons, Toolbar was blank.
                              so in place of

                              cmd.small_icon = "voronoi_conic/icon0s.png"
                              

                              I used

                              cmd.small_icon = "./icon0s.png"
                              

                              and it worked.
                              I have no idea why it was like that.
                              As for a wishlist:

                              • add a point cloud generator ruby tool - this should be no problem, if we are talking about random pints in a cube/box, and probably random points on face but I have no idea (for now) about random points in a volume (is it possible in Sketchup ?).
                                -add option to decide the resoult of VoronoiXY tool should be grouped or not - ok , just one userform asking if groups should be exploded in the end.
                              • add option (ConicCurveInFace.rb) that let user make ConicCurves from grouped face (resoult of VoronoiXY tool)- this should also not be a problem
                              • add option (ConicCurveInFace.rb) that let user make ConicCurves from a set of selections .. no need to click and click and click ... - same as above.

                              I will try to get it done, when I finish 3DVoronoi.

                              Cheers
                              Matt

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MattC
                                last edited by

                                I've unpacked it just as at was, so icons sits in a folder Plugins/voronoi_conic.
                                Somehow code

                                cmd.small_icon = "voronoi_conic/icon0s.png"
                                

                                , does not work for me (Win 7 and WinXP)
                                Strangely:

                                1. :
                                cmd.small_icon = "icon0s.png"
                                

                                and 2)

                                cmd.small_icon = "./icon0s.png"
                                

                                both works.
                                code 1) I understand as icons and ruby that invokes toolbar are in the sam location.
                                But 2) searches for icons in Plugin folder...or am I mistaken?
                                Does it work for You straight away ThomThom??

                                Matt

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  Haven't had time to try it - been very busy. Just monitoring the forum a little...

                                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Sl-m
                                    last edited by

                                    Hi the pjt !

                                    Great work!

                                    Few comments :
                                    1/ Could it be possible to undo the voronoi generation in one go ?(ctrl Z is going back through all the steps of the generation)
                                    2/ It does not generate the voronoi all the time. Sometimes nothing happens. Any idea ?

                                    Thanks for making my day with those plugins!

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      the.pjt
                                      last edited by

                                      Matt's original ruby files (could be found in the first post of this topic ) displays a dialog box that counts each step and you should verify each step by pressing OK button .. It could be good for preventing unwanted results ... ( but it was annoying for me )

                                      also you can delete each group of resoults and doing the Voronoi command on a particular face ...

                                      but above all I'm not a programmer Author ... I just wanted to help Matt by doing some routine steps of making an SU Extension ...

                                      πŸ˜‰

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MattC
                                        last edited by

                                        @unknownuser said:

                                        Few comments :
                                        1/ Could it be possible to undo the voronoi generation in one go ?(ctrl Z is going back through all the steps of the generation)

                                        • added to the wish list - see some posts above

                                        @unknownuser said:

                                        2/ It does not generate the voronoi all the time. Sometimes nothing happens. Any idea ?

                                        • if You can post Your .skp file then I can take a look at it.

                                        Matt

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          lapx
                                          last edited by

                                          Great Plugin Matt,

                                          However, some regions will not work for some strange reason. Snag in program somewhere.
                                          Good start though. I wish the ruby God's will help complete this one. Its very useful for creating metal sheets with these patterns and much much more. I used the "conic curve on face" and pointed to each face.

                                          Thanks!

                                          Lapx


                                          vjpeg.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            nektares
                                            last edited by

                                            sorry for the late reply, itΒ΄s a new file, no other geometry in it. if i open the ruby console i get this:

                                            Error: #<NoMethodError: undefined method vector_to' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:258:in voropoints'
                                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:231:in each' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:231:in voropoints'
                                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:128:in voronoi' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:105:in each'
                                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:105:in voronoi' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:36:in initialize'
                                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:384:in new' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:384 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:132:in call'
                                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/VoronoiXY.rb:132

                                            error voronoi
                                            skp file voronoi

                                            i hope you know what it is matt i would love to do something cool with your plugin.

                                            if i donΒ΄t open it i get this:

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 3 / 7
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement