sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] QHull

    Scheduled Pinned Locked Moved Plugins
    51 Posts 20 Posters 53.7k Views 20 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.
    • 2 Offline
      22curious
      last edited by

      After playing with the 2D Delaunay/Voronoi/Crust applet a bit more, I'm coming to terms with the CPoints outside the voronoi surface, assuming these points are in outer, unbounded cells with diverging faces (faces that converge to spikes for adjacent cells). These surfaces with spikes extending all the way to points should result from use of Qhull>voronoi>selection(free.

      For some purposes, we (at least I) do need to enforce boundaries.

      @avariant said:

      ...Selection (Bounding Box) was an attempt to reduce the number of unbounded points by adding "invisible" points at all the bounding box corners. In general, it doesn't really work. ๐Ÿ˜• ...

      Setting the math aside for a moment, just conceptualizing - would it make sense:

      ?** to make the 'invisible' bounding box corner points and faces physically visible to us - (perhaps in a very transparent, different color), but keep the corner points 'invisible' to the calculations drawing the voronoi faces?
      ?** to make these bounding faces = bounding section planes?
      ?** to use the section planes to truncate/bind the spikes?
      ?** perhaps allow user interaction with section plane/truncation placement before finishing the cuts and deleting all beyond the boundaries?

      To this newb, the 'bounding box' lends itself to using six sections for the bounding/truncating process. The spherical boundaries seem to require a different approach - unless spherical section surfaces exist. I'd be ๐Ÿ˜ฎ , but wouldn't that be fun?

      @avariant said:

      For dealing with "old" data, I suspect the script could be updated to actually delete the 'results' file where the Qhull output is placed before every run.

      ?** Can you suggest scripts/snippets where this forced data refresh technique is used?

      More about that 'old data' issue: I'm afraid that I may have confused Qhull by installing both ArchitectBoy's qhull and Avariant's Qhull into my plugins folder at the same time (suppose that's a Not2Do ๐Ÿ˜ณ). However, I still fail to get valid results from the Lsystem points after moving ArchitectBoy's version elsewhere.

      @avariant said:

      ...RE: LSystem data...post(ing) a scene.

      'Will post the Lsystem *.skp after I find a alternate route for uploading *.skp's. The screenshots I saved to PhotoBucket, which doesn't seem to handle *.skp format. ๐Ÿ˜•

      %(#FF8040)[~22curious
      *?
      ?...too, too many burning questions...??*]

      1 Reply Last reply Reply Quote 0
      • 2 Offline
        22curious
        last edited by

        Here's that skp. I think. ๐Ÿ’š


        Ex_LSystemPOINTS_QhullStall.skp


        Inspiration and texture

        1 Reply Last reply Reply Quote 0
        • qwertyasQ Offline
          qwertyas
          last edited by

          to make it work on VISTA, WINDOWS 7 run SKETCHUP AS ADMINISTRATOR

          step by step:
          1 rightclick on sketchup icon
          2 select run as administrator
          3 agree to yellow popup window
          sketchup will start

          to get flat voronoi net:

          1. create some points (use projections plugin) they will be created on xy plane
          2. select all points and convert to group
          3. select group and copy vertical (no matter how high you place copy)

          now you have two identical groups of points one above the second

          1. select both groups
          2. select menu plugins>qhull>voronoi> selection free

          the voronoi tesselation will show up between point selections
          done!

          works for me, I hope will work for you ๐Ÿ˜„

          1 Reply Last reply Reply Quote 0
          • D Offline
            dbalex
            last edited by

            thanks avariant for the plugin and thanks qwertyas for the workflow! it works perfectly!

            http://www.bocostudio.com

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

              @qwertyas said:

              to make it work on VISTA, WINDOWS 7 run SKETCHUP AS ADMINISTRATOR

              One has to find all the exe files that comes with the plugin, right click the files -> Properties and press the Unblock button. This is because Windows blocks executables downloaded from the internet.

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

              1 Reply Last reply Reply Quote 0
              • bigstickB Offline
                bigstick
                last edited by

                Any chance of a Mac version? There is a Mac version of Qhull here:- http://www.math.sunysb.edu/~sorin/online-docs/qhull/qh-get.htm

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

                  Can this be achieved with this plugin.
                  http://www.youtube.com/watch?v=Bw61WJbe2VU&feature=related
                  Not working in my version.

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    vklidu
                    last edited by

                    I have the same question ๐Ÿ˜„
                    Any chance of a Mac version? There is a Mac version of Qhull here:- http://www.math.sunysb.edu/~sorin/online-docs/qhull/qh-get.htm

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      serraniadan
                      last edited by

                      @qwertyas said:

                      to make it work on VISTA, WINDOWS 7 run SKETCHUP AS ADMINISTRATOR

                      IT WAS SO DAMN SIMPLE!!! ๐Ÿ˜ excelent dude! Thanks ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘

                      1 Reply Last reply Reply Quote 0
                      • DareDevilD Offline
                        DareDevil
                        last edited by

                        Since a long time I dont use this plug, but I need it today and I reinstall it... and, of course, it dont works on my Win7 ๐Ÿ˜ž

                        @qwertyas said:

                        to make it work on VISTA, WINDOWS 7 run SKETCHUP AS ADMINISTRATOR

                        I dont like to run as Administrator, so I searched an other "safer" way...

                        This is my solution for Windows :

                        • Move the qhull directory form the SU plugins directory to the root of ๐Ÿ˜„ (I dont like to put something in the root of C:, but I prefer to run as admin ๐Ÿ˜‰)
                        • In the SU plugin directory edit the qhull.rb and change
                        def self.initialize
                        	@qhull_path = Sketchup.find_support_file("Plugins/qhull")
                        	@qhull_path = @qhull_path + "/qhull-2003.1"
                        end
                        

                        to

                        def self.initialize
                        	@qhull_path = "c;/qhull/qhull-2003.1"
                        end
                        

                        ... and all works fine ! โ˜€


                        Edit 02/2015 :

                        This solution for windows is now obsolete since the plugin directory is in the User/AppData folder, no more authorization needed.

                        1 Reply Last reply Reply Quote 0
                        • DareDevilD Offline
                          DareDevil
                          last edited by

                          This plugin must be updated with Qhull 2012 for more stability on Win 64.
                          I did it for me, but I dont know if I can post it here... It's Avariant's plug, not mine ๐Ÿ˜‰

                          1 Reply Last reply Reply Quote 0
                          • DareDevilD Offline
                            DareDevil
                            last edited by

                            I'm not a Mac user for years...
                            There is a MacOS portage of Qhull. There is some one to port the Qhull plugin on MacOS with it ?

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

                            Advertisement