sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [REQ] Select internal edges

    Scheduled Pinned Locked Moved Plugins
    17 Posts 7 Posters 3.1k Views 7 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Hence my
      @unknownuser said:

      Fails if overhangs...
      Can't see an effective foolproof way of determining if an Edge or Face is within a Volume...

      TIG

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        Pilou, i think the problem is finding some way of determining whats an internal face and whats an external face.

        http://remusrendering.wordpress.com/

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

          Does not possible after an general "intersect", select only external faces, invert selection, erase?

          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

            At first sight it should be easy...
            We list all_connected faces in the shape, then we loop through the list.
            If a ray that's on an all_connected face's 'normal' intersects with something else in the all_connected list then it's internal...
            This method works fine on a simple cube** etc BUT if the shape is 'convoluted' then there can be external faces overhanging other external faces, so that the method finds a ray intersection and return them as 'internal', but they are NOT...
            **Note that also 'reversed faces' will appear to be internal when they aren't, even on a simple cube !

            I'm sure there's some clever topological way of telling if a face is external or internal to a set of connected faces... but I don't know what it is. 😒

            If only we knew a budding Mathematician... Remus, do you know any ? πŸ˜‰

            TIG

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              I wonder if SketchPhysics has some code that could be useful to determine external/internal faces..?

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

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

                If you make the 6 views XYZ "visibles front face" by Normal you have not all external visible faces?

                In Blender you have something named "occlude background geometry" that help for this sort of selection

                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:

                  If you make the 6 views XYZ "visibles front face" by Normal you have not all external visible faces?

                  In Blender you have something named "occlude background geometry" that help for this sort of selection

                  It won't 'see' ALL external faces... if for example there is a hollow into the shape that is wider at the back...Hollow.png

                  TIG

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

                    So a cool headache πŸ˜„

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

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Yea, it's a royal pain in the rear end!

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        just came across this thread: http://forums.sketchucation.com/viewtopic.php?f=180&t=12668
                        haven't looked at the code yet.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • JClementsJ Offline
                          JClements
                          last edited by

                          Question:

                          Does or can ruby act differently in selecting geometry if Xray is turned on or off?
                          If so, then could you do two routines, one with it on and another with it off, then compare the two results?
                          Would the difference between the results of the two routines be the internal edges?

                          John | Illustrator | Beaverton, Oregon

                          1 Reply Last reply Reply Quote 0
                          • X Offline
                            xrok1
                            last edited by

                            can you bounce light at the problem?

                            β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                            http://www.Twilightrender.com try it!

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

                              A combination of Erase-Coplanar-Edges and the Remove-Inner-Faces, then Erase-Coplanar-Edges again gets rid of most internal faces and edges BUT it can't remove inner faces that are subdivided and not coplanar or have a single-faced edge...

                              I thought about getting the all_connected face/edge and vertices and using the shape's topology - Euler Factor - v-e+f=2 etc to see if that helped - but so far not much use. If you remove the coplanar-edges first it does return 2 for simple solids + 1 for every internal cell making face... ❓

                              TIG

                              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