[Plugin] QHull
-
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...??*] -
-
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 startto get flat voronoi net:
- create some points (use projections plugin) they will be created on xy plane
- select all points and convert to group
- select group and copy vertical (no matter how high you place copy)
now you have two identical groups of points one above the second
- select both groups
- 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
-
thanks avariant for the plugin and thanks qwertyas for the workflow! it works perfectly!
-
@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.
-
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
-
Can this be achieved with this plugin.
http://www.youtube.com/watch?v=Bw61WJbe2VU&feature=related
Not working in my version. -
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.htmThanks
-
@qwertyas said:
to make it work on VISTA, WINDOWS 7 run SKETCHUP AS ADMINISTRATOR
IT WAS SO DAMN SIMPLE!!! excelent dude! Thanks
-
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.
-
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 -
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 ?
Advertisement