Select all faces in a surface with more than 3 edges?
-
Hi,
I have a surface made up of tens of thousands of hidden faces. It represents topography of an existing patch of the Earth. I draped hundreds of edges over it that represent the edges of road surfaces. Some of the drape "took", meaning on some portions of the surface the draped edges separated the surface into smaller selectable surfaces. In other areas the draped edges are on the surface, but did not a create smaller separate selectable surfaces. (tongue-twister!)
The problem appears to be that some of the draped edges create new faces on the surface with more than three edges (non-triangular polygons). That prevents the surface from being "subdivided" into smaller separate selectable surfaces.
I need all of the drape to work, dividing the surface into smaller surfaces. This is so I can apply materials (asphalt for road surface, grass, et cetera). Yes I can find the faces manually, but for thousands of faces this would be an inefficient use of time.
So, is there a selection plugin (or series of plugins) that will select or identify all of the faces within my surface that have more than three edges? Once I find them, then I can triangulate them in short order.
I did some forum searching, but couldn't find anything on this subject. I apologize if this is a repeat question. File is attached.
Thank you,
Jackball
-
Copy/paste [+<enter>] this code into the Ruby Console
m=Sketchup.active_model;s=m.selection;s.clear;m.active_entities.each{|e|s.add(e)if e.class==Sketchup;;Face and e.edges[3]}
Then use a tool like 'TriangulateFaces' on that selection... e.g. http://forums.sketchucation.com/viewtopic.php?p=175613#p175613
-
Another speed cool tool helper!
-
Artisan has a selection brush that selects faces. Don't know if this would be the most effective tool for your case.
-
@tig said:
Copy/paste [+<enter>] this code into the Ruby Console
m=Sketchup.active_model;s=m.selection;s.clear;m.active_entities.each{|e|s.add(e)if e.class==Sketchup;;Face and e.edges[3]}
Then use a tool like 'TriangulateFaces' on that selection... e.g. http://forums.sketchucation.com/viewtopic.php?p=175613#p175613
Thank you so much! This worked like a charm. There were 234 faces that needed triangulation- that would have taken an eternity.
I guess I should learn ruby in my spare time!
jackball
-
What is the plug of triangulation ?
-
@unknownuser said:
What is the plug of triangulation ?
Click the link I gave... -
huhu missed this one!
Advertisement