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

    Derive 2D footprint from 3D model

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    6 Posts 6 Posters 729 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.
    • J Offline
      josh_blomberg
      last edited by

      Hi,

      I'm trying to extract a 2D footprint for an arbitrary 3D model. The models may be composed of multiple discontiguous sections, potentially at different elevations.

      I'm thinking of the footprint extraction process in two steps. Step 1 would be determining the 2D projection of the model, potentially producing multiple polygons if the model was discontiguous. Step 2 would be to combine the polygons into a single convex hull. I've implemented Andrew's monotone chain algorithm for computing covxex hulls in the past and understand that step.

      I'm unsure how to accomplish step 1 and was hoping that someone could point me in the right direction. I've looked at the Section Plan tool, which seems great but has limited support in the API for retrieving the section plane geometry.I've thought about raytracing but that seems like overkill. I've thought about trying to do this with a Boolean intersection but that has issues since the model may not be solid.

      Any pointers would be greatly appreciated.

      Thanks,
      Josh

      1 Reply Last reply Reply Quote 0
      • BoxB Offline
        Box
        last edited by

        Maybe I'm missing something, you may be talking api, but,
        Camera/Standard Views/Top, Camera/Parallel Projection will give you a 2d plan.

        1 Reply Last reply Reply Quote 0
        • pbacotP Offline
          pbacot
          last edited by

          I think OP wants a polygon representing the footprint, not a picture.

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          1 Reply Last reply Reply Quote 0
          • G Offline
            Glenn at home
            last edited by

            Can you not just set the view you want (any view) and then do a 2D dwg export. This "flattens" the model. Reinsert or open the exported DWG back into SU.
            Maybe I am missing what you want as well.

            SketchUp Pro 2024/2025 Dell XPS 8950 i9-12900K 64GB Ram RTX 3080

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

              @josh_blomberg said:

              Hi,

              I'm trying to extract a 2D footprint for an arbitrary 3D model. The models may be composed of multiple discontiguous sections, potentially at different elevations.

              Something like this?


              3d to 2d.gif

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

              http://sdmitch.blogspot.com/

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

                What if you use intersect faces with model?

                Rightclick your model's geometry even at different heights and a plane or surface or any other geometry that intersects it and rightclick on any of the selected and run intersect faces...

                Depending on your context you can intersect Selected faces with:

                • Current context (if you're inside a group/component you can restrict to that context)
                • Rest of the model (even if you're inside a context and the rest of model is out of that context);
                • Selection (you intersect your selected objects with themselves)

                What you can also do is use sandbox tools (if you can't find it on toolbars you must activate it under sketchup preferences > extensions):

                Select the faces you want to project on the ground and hit drape tool.

                www.casca.pt
                Visit us on facebook!

                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