[REQ] drop and drape
-
Drape CPoints - http://forums.sketchucation.com/viewtopic.php?t=21379
Point Cloud Triangulation - http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=292
-
@unknownuser said:
Drape CPoints - http://forums.sketchucation.com/viewtopic.php?t=21379
Point Cloud Triangulation - http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=292Thanks - beat me to it...
This tool makes cpoints on the surface then you make the mesh from those... -
I have that script with the delauney and triangulate in my plugins folder, however I cannot to the life of me find the triangulate option anywhere in SU, it's supposed to be in the plugins drop down but nada, I installed it 5 times incase I messed up somehow, but still nothing appears in SU 8.
-
Nice to see someone appreciates me around here
-
@solo said:
I have that script with the delauney and triangulate in my plugins folder, however I cannot to the life of me find the triangulate option anywhere in SU, it's supposed to be in the plugins drop down but nada, I installed it 5 times in case I messed up somehow, but still nothing appears in SU 8.
Plugins >> Triangulate points...
What version did you install ? -
I have both triangulate.rb and points_cloud_triangulation.rb.
-
@solo said:
I have both triangulate.rb and points_cloud_triangulation.rb.
And
delauney2.rb
?
What happens if you typetriangulate_points
into the Ruby Console ?
I have these files in ../Plugins AND I get the Plugins menu item 'Triangulate points'
You haven't suffered some weird Vista type compatibility files folder problems ?? -
I typed it in, it asked me if I wanted to put it on a new layer, I clicked yes and it did nothing.
Ruby consol showed a 0.
Yes I have delauney2.rb in plugins folder.
-
Then I closed SU, opened it again, made new setup, exploded points and got this:
triangulate_points Error; #<ArgumentError; C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate'; wrong number of arguments (1 for 0)> C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107 C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate_points' (eval);948
No thing happened however, still points and no mesh.
If I choose not to put on layer I get this:
triangulate_points Error; #<ArgumentError; C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate'; wrong number of arguments (1 for 0)> C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107 C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/points_cloud_triangulation.rb;107;in `triangulate_points' (eval);107
-
-
Solo
Please remove your points_cloud_triangulation.rb and install my version from here http://forums.sketchucation.com/viewtopic.php?p=301274#p301274 - extract the two .rb files into Plugins... note it needs my version 'delauney3.rb' included in the zip.
I suspect from your error message that the 'unencapsulated' method 'trangulate' in delauney2 is getting compromised by another method of the same name loading from another script... My versions contains the methods inside a 'class'.
-
Thanks TIG, it works now.
-
Could not this be done more directly using an actual PolygonMesh instead of using cpoints? I mean, you could generate a flat mesh of some density, then iterate the points and adjust each points's Z coordinate (using .set_point) to the "ground" using raycast?
-
@jim said:
Could not this be done more directly using an actual PolygonMesh instead of using cpoints? I mean, you could generate a flat mesh of some density, then iterate the points and adjust each points's Z coordinate (using .set_point) to the "ground" using raycast?
You certainly could - the drape_cpoints then triangulate method was written some while ago in response to a request [it does allow you to adjust some of the cpoints before making the mesh so in some respects it's perhaps easier that trying to move a mesh's vertices later on?]... BUT a method like you suggested that auto-drapes a flat [grouped] mesh over some 3d solid forms below using a raytest and a 'vertex-move' method would be quite doable [so over to you...]
Advertisement