sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Select all faces in a surface with more than 3 edges?

    Scheduled Pinned Locked Moved Plugins
    8 Posts 4 Posters 283 Views 4 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.
    • J Offline
      jackball
      last edited by

      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


      Component_1.skp

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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
        🤓

        TIG

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Another speed cool tool helper! ☀

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • mitcorbM Offline
            mitcorb
            last edited by

            Artisan has a selection brush that selects faces. Don't know if this would be the most effective tool for your case.

            I take the slow, deliberate approach in my aimless wandering.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jackball
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                What is the plug of triangulation ?

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  @unknownuser said:

                  What is the plug of triangulation ?
                  Click the link I gave...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    huhu missed this one! 😳

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

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

                    Advertisement