by avariant » Wed May 13, 2009 5:03 pm
I know there was a plugin produced for this a while back, but I wanted to make something that was fully integrated. So, hopefully no offense to the previous developers. I didn't build off anyone else's work, all from scratch. This plugin uses the Qhull libraries to produce voronoi, convex hull, delaunay, and half point shapes. Everything is managed by the plugin, so no need to produce data external to SU. In the plugins menu, under Qhull, there are 4 submenus: Voronoi - produces voronoi shapes, which tend to be rather spiky. Convex - produces solid, convex shapes that are a 'shell' Delaunay - produces 'mostly' solid (may have holes), convex shapes that contain a lot of internal structure Half - produces 'mostly' solid, convex shapes, not sure what else the generated data is supposed to represet...  Each submenu has items for: Small: uses 10 random points Medium: uses 50 random points Large: uses 100 random points Huge: uses 500 random points Selection: uses the vertices of the selected data Voronoi has some extra options that attempt to produce better visual results Selection (sphere) - adds an array of points in a sphere around the selection. Usually produces more 'knobby' results Selection (cube) - adds an array of points in a cube around the selection. Usually produces more of a 'star' result Selection (free) - doesn't add any extra data. Typically produces VERY spiky results. Qhull will not always generate valid data, especially from selection. The plugin will usually warn you if it doesn't produce valid data. Also, delaunay can produce A LOT of data, so be careful when using it from selection. Half point tends to produce physically very small shapes... I don't know why. I don't really know the math behind that one. I don't have much time to update these, so... sorry if I'm not able to make much in the way of improvements. I hope it's useful! The zip contains the rb and a qhull directory with the executables for Windows in it. Just extract to your plugins directory. Sorry, don't know what it will take to update for Mac. And, of course, QHull is copyright by the Geometry Center, qhull.org.
Please, register (free) to access all the attachments on the forums.
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by avariant » Wed May 13, 2009 5:05 pm
Add the actual plugin! (D'oh)
EDIT: Updated to work for SU6 EDIT 5/14/2009: Updated to work with ConstructionPoints
Please, register (free) to access all the attachments on the forums.
Last edited by avariant on Thu May 14, 2009 3:26 pm, edited 2 times in total.
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by remus » Wed May 13, 2009 5:19 pm
Cheers, i'll have a play with this later this evening 
-
remus
-
- Posts: 8055
- Joined: Fri Nov 30, 2007 8:48 am
- Location: UK
- Name: remus
-
by Chris Fullmer » Wed May 13, 2009 5:30 pm
Great job! This has been a highly requested plugin lately.
Chris
-

Chris Fullmer
- SketchUp Team
-
- Posts: 6693
- Joined: Wed Nov 21, 2007 3:21 am
- Location: Davis, CA
- Name: Chris Fullmer
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by thomthom » Wed May 13, 2009 5:54 pm
Would you mind adding "[Plugin]" to this thread's title? It makes it easier to search for plugins posted on this forum.
-

thomthom
- Global Moderator
-
- Posts: 17630
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by avariant » Wed May 13, 2009 6:32 pm
Looks like someone did. Thanks! Sorry about that! 
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Wed May 13, 2009 6:37 pm
-

thomthom
- Global Moderator
-
- Posts: 17630
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Pilou » Wed May 13, 2009 8:36 pm
How is supposed to work? (works with the V6 ?) Must I Selected something on the screen? ... 
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by avariant » Wed May 13, 2009 10:49 pm
I haven't tested with V6... I suspect it's not compatible because of I'm using some SU7 flags on the start_operation command. I'll update that to do a version check.
Anyway, as I wrote previously, you can either use one of the Small, Medium, etc commands to generate random shape, or select something and use the Selection entry.
When using selection, it won't always generate a result. If the selection is all on a single plane, you won't get anything out.
EDIT: I updated it to do a version check for SU7 vs SU6. Tested on SU6.
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by Pilou » Wed May 13, 2009 11:01 pm
Yes! That whas that! Don't works with the V6  Works fine with the v7! 
Please, register (free) to access all the attachments on the forums.
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by avariant » Thu May 14, 2009 5:08 am
It should work now with V6.
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by Pilou » Thu May 14, 2009 8:14 am
Yes works now for the v6  "Half" start size is very very very little! Maybe like 5 pixels!!! 
Please, register (free) to access all the attachments on the forums.
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by tomasz » Thu May 14, 2009 10:59 am
Can someone enlighten me, please? What it the purpose of having such a random geometry? 
-
tomasz
- SU2TH & SU2KT Developer
-
- Posts: 775
- Joined: Fri Nov 16, 2007 8:46 pm
- Location: Poland
- Name: Tomasz
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by halroach » Thu May 14, 2009 12:28 pm
It's a very nice plugin! It would be even nicer if it were more stable and responsive with user selected points to create the different shapes. I wasn't able to create any shapes out of user selected points. How do I select points? do I select lines? or points created with one of the point plugins? (that didn't work for me either...). This plugin can have great potential... Very Nice!
-
halroach
-
- Posts: 168
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by skybluessy » Thu May 14, 2009 12:33 pm
thanks for the developer,very nice
-
skybluessy
-
- Posts: 1
- Joined: Mon May 11, 2009 1:47 pm
- Name: sky
by craigbic » Thu May 14, 2009 12:41 pm
YES!!!!  I have been really.....really....REALLY needing this lately! I can't wait to try this as soon as I am done writing this reply. I'll let you know how it goes. Can someone enlighten me, please? What it the purpose of having such a random geometry?
Tomasz, I wouldn't call it "random geometry" as the "randomness" would depend on the point cloud used as the basis for the Voronoi diagram but rather call it "mathematically generated geometry". 3D Voronoi structures (2D Voronoi diagrams aside) are used in cellular-level research, bone fatigue studies, and experimental cellular architecture.
-
craigbic
-
- Posts: 24
- Joined: Tue Dec 04, 2007 5:06 pm
- Location: Peabody, MA
- Name: Craig Bickford
-
by craigbic » Thu May 14, 2009 2:15 pm
Well, there are a few snags but I am still VERY pleased with this large chunk of progress. Kudus, avariant! This is a major step forward in the Qhull/Voronoi plugin development. Has ANYBODY been able to get the "selection" versions of Voronoi, convex, Delaunay, or half working at all? I have been unable to do so under any circumstance regardless of point cloud size or attitude in SU6. I use SU6 at work and SU7 at home so I haven't tried it in SU7 yet. I generated lsystem point clouds of various sizes and was totally unable to get them to work. Then I tried various hand-made point clouds, ones generated from sandbox meshes, and even point clouds generated from 2D Voronoi diagrams and all did not work (see error message pic). On the positive side, all of the operations based on points generated by rbox work just fine and it is really nice to have them working within SU! I guess for now, to generate 3D Voronoi geometry from my own points, I'll have to follow my own procedure as outlined in this postI feel like we're almost there and it will only take a slight nudge to get this totally working.....I am still quite excited about this. 
Please, register (free) to access all the attachments on the forums.
-
craigbic
-
- Posts: 24
- Joined: Tue Dec 04, 2007 5:06 pm
- Location: Peabody, MA
- Name: Craig Bickford
-
by Pilou » Thu May 14, 2009 2:44 pm
Has ANYBODY been able to get the "selection" versions of Voronoi, convex, Delaunay, or half working at all?
In fact yes You must make a group before launch the Qhull plug Half works also but result is like 1*1*1 pixel at the origin so you must rescale the result For your points I don't know yet but I suppose if you make a group maybe that works too 
Please, register (free) to access all the attachments on the forums.
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by avariant » Thu May 14, 2009 2:50 pm
OOOhhhhh.... oversight on my part! When examining the standard SU 'model', there usually aren't construction points. Everything is edges and faces. So, I just search for all the edges and use the starting vertex for each edge (to avoid duplicate points, I don't use the end). It never occurred to me to also search for construction points, but I can see how that would be useful! To see how the selection part works now, create a random convex shape. Then select the component, and do voronoi on selection. There you will see how it works. In the meantime, I'll update it to capture construction points also. As far as purpose.... well... it's artistic, right?  Actually, convex hull can have a legitimate purpose. If you have a complex model, do a convex hull selection on it, you'll get a sort of 'shrink wrap' shell of the entire model. I'm sure the others have legitimate purposes too. 
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by avariant » Thu May 14, 2009 3:27 pm
Fixed for using Construction Points.
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by watkins » Thu May 14, 2009 5:37 pm
A tutorial or two to demonstrate how to use this plugin would be nice.
Regards, Bob
-
watkins
-
- Posts: 1367
- Joined: Wed Nov 14, 2007 5:47 pm
by craigbic » Thu May 14, 2009 8:19 pm
YES...YES.....YES!!!!! Everyhing is working now! Thank you especially for the update for use with construction points. I tried every variant I could think of, lsystem point clouds, sandbox mesh grids, convex geometry groups....it all worked.....flawlessly! It took awhile but as I told other members in other related posts.....somebody in this terrific community forum will come in and save the day! Thank you avariant!!! 
-
craigbic
-
- Posts: 24
- Joined: Tue Dec 04, 2007 5:06 pm
- Location: Peabody, MA
- Name: Craig Bickford
-
by avariant » Thu May 14, 2009 8:30 pm
My pleasure. It was fun, and I've always been a fan of the 3D Voronoi shapes. 
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by MALAISE » Mon May 18, 2009 10:10 am
La Connaissance n'a de valeur que partagée
-
MALAISE
-
- Posts: 620
- Joined: Sun Apr 20, 2008 1:23 pm
- Location: Cergy Pontoise FRANCE
- Name: Pierre
by halroach » Tue May 19, 2009 7:07 am
I haven't been able to generate any shapes with selected shapes, or with selected construction points, if in a group/components/outside a group/component. I get the following errors: "qhull generated empty results" "qhull failed to generate valid results"
ideas?
-
halroach
-
- Posts: 168
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by avariant » Tue May 19, 2009 5:13 pm
If your points are all on the same plane, then you won't get any results.
To ensure it works at all: 1.Create new, empty scene. 2. Plugins->Qhull->Convex->Medium 3. A convex shape should be created. Select it. 4. Plugins->Qhull->Voronoi->Selection(Free) 5. A spiky shape should be created.
If all that works, then the problems is your input data (ie model / points).
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by Pilou » Tue May 19, 2009 6:37 pm
So is that normal?  Always take a convex volume for any function 
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Wed May 20, 2009 1:05 am, edited 2 times in total.
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by avariant » Wed May 20, 2009 12:54 am
I honestly don't know the math, but A LOT of regular shapes, like cubes, planes, etc, don't generate valid voronoi results. They may still generate results from the other options, and will often work if you choose Selection (Sphere) or Selection (Box). I don't know why... math, right? 
-
avariant
-
- Posts: 93
- Joined: Sat May 03, 2008 6:00 pm
- Location: Colorado
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: other
- Level of SketchUp: Intermediate
by Pilou » Wed May 20, 2009 1:07 am
No problem ! Thats fun  (click image for erase scroll bar) kul.jpg
Please, register (free) to access all the attachments on the forums.
-

Pilou
- Top SketchUcator
-
- Posts: 10056
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by 22curious » Sat Sep 26, 2009 11:50 pm
Avariant - Thank's for your Qhull.rb - it could be a crucial piece of the puzzle I'm trying to solve, except I can't get it to function with my own (grouped) convex form. avariant wrote:If your points are all on the same plane, then you won't get any results.
To ensure it works at all: 1.Create new, empty scene. 2. Plugins->Qhull->Convex->Medium 3. A convex shape should be created. Select it. 4. Plugins->Qhull->Voronoi->Selection(Free) 5. A spiky shape should be created.
If all that works, then the problems is your input data (ie model / points).
Also, if I follow your test instructions, Steps # 1-3 work, but using 4. Plugins->Qhull->Voronoi->Selection(Free) {or any of the other selection options for step 4) yields no results. Using one of the non-selection size options (small through huge) as Step 4 yields the anticipated spiky shape. I'm having the same trouble as Halroach (did you ever find the solution why?) Halroach wrote:Re: [Plugin] QHull
Postby Halroach on Tue May 19, 2009 8:07 am I haven't been able to generate any shapes with selected shapes, or with selected construction points, if in a group/components/outside a group/component. I get the following errors: "qhull generated empty results" "qhull failed to generate valid results"
Please help me find a path to generate voronoi shapes from convex polygons generated and selected by me (not by Convex). Thanks!
-
22curious
-
- Posts: 9
- Joined: Mon Aug 24, 2009 5:39 am
- Name: 2ba
Return to Plugins
|