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

    Is there a way to make surface planar

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    11 Posts 6 Posters 1.7k Views 6 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.
    • M Offline
      mwm5053
      last edited by

      This is a roof line that wasn't completely planer made from several different objects it intersected with. I couldn't get the lines to make a face so I used Sandbox/ From contours I got a face but lots of hidden geometry which makes it hard if not impossible to extrude of use the offset tool. So Is there a way to make surface planer without any hidden geometry?


      Ocean House copy 3.jpg


      Component_60.skp

      2011 iMac
      SU 2015 Pro, 2017 Make
      V2 Twilight
      macOS Sierra 10.12.5

      1 Reply Last reply Reply Quote 0
      • Bob JamesB Offline
        Bob James
        last edited by

        I suppose there are more elegant ways but:

        Select the edges, make them a group and drape them onto a flat plane?

        Or, if you have the Q Align plugin, select the edges and make them all the same height?

        The first way always works and automatically provides the surface.

        i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

        1 Reply Last reply Reply Quote 0
        • M Offline
          mwm5053
          last edited by

          Thanks to you both. Both methods worked thanks so much.

          2011 iMac
          SU 2015 Pro, 2017 Make
          V2 Twilight
          macOS Sierra 10.12.5

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

            Flatten Vertices by Niall Campbell

            GIF_flat_vertice.gif

            Tig has one too more complete! Drop Vertices but you must select only edges!

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

            1 Reply Last reply Reply Quote 0
            • PixeroP Offline
              Pixero
              last edited by

              @sdmitch:

              Thanks for the great script snippet.
              Would it be possible to modify it so that it would work on a selection of several non connected surfaces and that it would clean them up at the same time. Now I must select each surface by hand which takes considerably longer.

              1 Reply Last reply Reply Quote 0
              • sdmitchS Offline
                sdmitch
                last edited by

                @pixero said:

                @sdmitch:

                Thanks for the great script snippet.
                Would it be possible to modify it so that it would work on a selection of several non connected surfaces and that it would clean them up at the same time. Now I must select each surface by hand which takes considerably longer.

                I would assume so. Are we talking about normally grouped surfaces that you want to able to select all and process them individually as you are currently doing one at a time?

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

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

                  @unknownuser said:

                  selection of several non connected surfaces

                  The "Flatten vertices" above makes that! 😉

                  Just use Clean Up after! 🤓

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

                  1 Reply Last reply Reply Quote 0
                  • PixeroP Offline
                    Pixero
                    last edited by

                    @Pilou: That didn't work in my case.

                    @sdmitch: I've sent you an example file as a PM.

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

                      Without file that is difficult to test! 😄

                      GIF_2plans.gif

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

                      1 Reply Last reply Reply Quote 0
                      • sdmitchS Offline
                        sdmitch
                        last edited by

                        @mwm5053 said:

                        This is a roof line that wasn't completely planer made from several different objects it intersected with. I couldn't get the lines to make a face so I used Sandbox/ From contours I got a face but lots of hidden geometry which makes it hard if not impossible to extrude of use the offset tool. So Is there a way to make surface planer without any hidden geometry?

                        I don't have access to SU2017 at the moment but my guess is that, since this is part of a roof, it is sloped so draping or making all z's the same will not work but maybe this will help.
                        Open the group for edit and select all. Paste code snippet into the Ruby Console and press Enter.

                        @mod = Sketchup.active_model
                        @ent = @mod.active_entities
                        @sel = @mod.selection
                        @vue = @mod.active_view
                        vrts = @sel.grep(Sketchup;;Edge).map{|e|e.vertices}.flatten.uniq
                        pnts = vrts.map{|v|v.position}
                        plane = Geom.fit_plane_to_points pnts
                        pnts = vrts.map{|v|v.position.project_to_plane(plane)}
                        vecs = []; edgs = []
                        vrts.each_with_index{|v,i|vecs<<v.position.vector_to(pnts[i])}
                        @ent.transform_by_vectors(vrts,vecs)
                        @sel.grep(Sketchup;;Edge).each{|e| next unless e.faces[1];edgs<<e}
                        @ent.erase_entities(edgs.reverse)
                        
                        

                        put on plane.gif

                        Nothing is worthless, it can always be used as a bad example.

                        http://sdmitch.blogspot.com/

                        1 Reply Last reply Reply Quote 0
                        • kenK Offline
                          ken
                          last edited by

                          Well the way I make a surface a plane is to use the rotated rectangle, pick three points that should lay on the same plane. This makes a rectangle that is a least a flat plane to three of the points. Then I offset the rectangle until it covers the area I wish to cover, then intersect with model, and pesto, a flat plane. Note, if the flat plane does not connect to all the edges, you will need to move the plane to connect to all the other surfaces, or modify the surfaces that don't connect to the plane.

                          Ken

                          Fight like your the third monkey on Noah's Ark gangway.

                          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