sketchucation logo sketchucation
    • Login
    šŸ¤‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Boolean Subtraction or ???

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 7 Posters 2.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.
    • medeekM Offline
      medeek
      last edited by

      I am working on the foundation plugin, in particular slabs and slab on grade foundations. I am creating a tool that allows the user to generate a polygon shaped slab, see below:

      http://design.medeek.com/resources/images/foundation_su33_800.jpg

      Currently the rebar or mesh is created so that it extends to the full extent of the bounding box of the slab. I would like to use the boolean subtraction that is built into SketchUp to trim the reinforcement so that it is properly contained within the slab however this feature is only available in the Pro version.

      The intersect_with method is probably the next best thing but it seems like it will be quite a bit more complicated to subtract out the rebar that is external to the slab, especially where the rebar is cut in multiple locations.

      I am exploring any and all options.

      Nathaniel P. Wilkerson PE
      Medeek Engineering Inc
      design.medeek.com

      1 Reply Last reply Reply Quote 0
      • bazB Offline
        baz
        last edited by

        You might want to check out 2DBoolean by Joel G. Just the thing for this operation.

        1 Reply Last reply Reply Quote 0
        • JQLJ Offline
          JQL
          last edited by

          Edge tool 2 split faces tool can also give you some clues.

          www.casca.pt
          Visit us on facebook!

          1 Reply Last reply Reply Quote 0
          • jolranJ Offline
            jolran
            last edited by

            @unknownuser said:

            You might want to check out 2DBoolean by Joel G. Just the thing for this operation.

            I thought so to at a first glance. But then I looked closer at the Picture and it does look like the metal-net is inside the volume meaning a 3D boolean is needed. 2D-boolean plugin only have algorithms for working with planar (face) intersections.

            I don't think you have any other alternatives then winding up your own intersection formula using Groups and sorting out geometry if you are not going to use PRO version boolean.

            1 Reply Last reply Reply Quote 0
            • G Offline
              Garry K
              last edited by

              One option is to detect whether the user has Pro or Make. If Make - then skip the rebar. If Pro then use the available boolean functions.

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

                @medeek said:

                Currently the rebar or mesh is created so that it extends to the full extent of the bounding box of the slab. I would like to use the boolean subtraction that is built into SketchUp to trim the reinforcement so that it is properly contained within the slab.

                What should the distance be from the end of the rebar to edge of the slab?

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

                http://sdmitch.blogspot.com/

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pcmoor
                  last edited by

                  @sdmitch said:

                  What should the distance be from the end of the rebar to edge of the slab?

                  50mm or 2 inch

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Garry K
                    last edited by

                    I have sent you a PM with a code snippet.
                    select the face of the slab and run the code and you will have construction points offset by 50 mm.

                    Adjust the code to fit your needs.

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

                      Not that difficult.


                      Trim Rebars.gif

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

                      http://sdmitch.blogspot.com/

                      1 Reply Last reply Reply Quote 0
                      • medeekM Offline
                        medeek
                        last edited by

                        @Sdmitch: I'm testing your Subtract tool you sent me a while back and it almost works! However when the subtraction breaks the solid group into more than one physical solid then the process seems to break down slightly.

                        In a nutshell I need to be able to do this sort of thing:

                        https://3dwarehouse.sketchup.com/warehouse/getpubliccontent?contentId=82746e2c-7867-4de3-8b47-56364b2a6593

                        Where I am subtracting the odd shaped polygonic solid from the cylinder.

                        This last week has been challenging working on the polygon tool for the foundation plugin, I've made some real progress, thanks in a large degree to the continual help and encouragement from Sdmitch, Garry K, TIG and Facer. I'll readily admit my actual SketchUp programming skills are very weak whereas my ideas are very big, it sometimes amazes me I've gotten as far as I have with these two plugins. The fact that I am able to lean on others for some help on occasion has made all the difference.

                        Nathaniel P. Wilkerson PE
                        Medeek Engineering Inc
                        design.medeek.com

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

                          @medeek said:

                          @Sdmitch: I'm testing your Subtract tool you sent me a while back and it almost works! However when the subtraction breaks the solid group into more than one physical solid then the process seems to break down slightly.

                          Yes, I see where it would since it the opposite of what you are trying to accomplish with the slab and rebars. I will PM you the interactive tool version of the plugin I demonstrated in my previous post.

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

                          http://sdmitch.blogspot.com/

                          1 Reply Last reply Reply Quote 0
                          • medeekM Offline
                            medeek
                            last edited by

                            I'm still digging through the code you sent me. It may take a week but I will attempt to figure out how this actually works. Its amazing how much you are able to compress into such a small body of code.

                            Nathaniel P. Wilkerson PE
                            Medeek Engineering Inc
                            design.medeek.com

                            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