sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Offset a polyline with Z value

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    11 Posts 3 Posters 705 Views 3 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.
    • bikerchrisB Offline
      bikerchris
      last edited by

      Hi all,

      Sorry to bring this up, but I have done a thorough search first with no relevant results ๐Ÿ˜ž

      I'm trying to draw a road which has known Z values and is the only thing I have to go on - I'll then draw the rest of the contours based on it.

      In CAD I have the extents of the road (which vary in distance from the centreline) and the centre line itself, I've converted the centre line to the correct Z values. I was hoping to import this information into sketchup and some how create the road as a flat surface, but after hours of playing am unable to do it!

      As you can imagine, I'm doing this the opposite way to how a model is created - normally a nice contoured surface is created, and then road extents would be 'dropped' into it using DropGC or Instantroad. I do have both as well as Artisan, but I believe none of these can help.

      Any comments welcome, thanks!

      1 Reply Last reply Reply Quote 0
      • cottyC Offline
        cotty
        last edited by

        Are you able to share a part of the road to have a look at?

        my SketchUp gallery

        1 Reply Last reply Reply Quote 0
        • bikerchrisB Offline
          bikerchris
          last edited by

          Hi Cotty, thanks for responding so quickly. I've stripped the drawing/sketchup file down so I can share it now. Here's a CAD/Sketchup copy for you to look at:

          Error 404 - Not found

          favicon

          (www.bikerchris.co.uk)

          Error 404 - Not found

          favicon

          (www.bikerchris.co.uk)

          You'll note that as I only had 3 values for Z but I knew where they were, I did this (possibly an odd solution):

          Using CAD I found the height difference of points to the nearest 0.5m. Then calculated how many 0.5m go into the difference, then used the CAD 'divide' command and submitted that number to the polyline. Then offset 0.5m vertically and simply made a note of each point, then created a 3D poly based on that. Hmm, that does sound complicated when I describe it!

          Thanks in advance for your help.

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

            So you have the center line at your z-values. You need the edges at z value too. Do you know what those or are you just estimating their height as even with the center line. Is that what you mean by you want it "Flat"?

            I am guessing here, but You could use the center as guide for follow-me. Make a vertical profile of the road. Though you only need the top, you need to make this profile to have a face,so enclose it on the bottom. Draw it aligned with your center line. Use follow-me to extrude it via the centerline. Use soften/smooth as required. Other choice is you may want to use "follow-me and Keep plugin.

            MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

            1 Reply Last reply Reply Quote 0
            • bikerchrisB Offline
              bikerchris
              last edited by

              @pbacot said:

              So you have the center line at your z-values. You need the edges at z value too. Do you know what those or are you just estimating their height as even with the center line. Is that what you mean by you want it "Flat"?

              Thanks for commenting pbacot. I don't know what the road edge heights are, so I would like to say approx 0.1m lower than the centreline, to give them some sort of gradient. You've got the idea though, just imagine trying to draw a road which twists and turns up a hill and remains flat as it does so - but with no ground level for reference.

              @pbacot said:

              I am guessing here, but You could use the center as guide for follow-me. Make a vertical profile of the road. Though you only need the top, you need to make this profile to have a face,so enclose it on the bottom. Draw it aligned with your center line. Use follow-me to extrude it via the centerline. Use soften/smooth as required. Other choice is you may want to use "follow-me and Keep plugin.

              That is a FANTASTIC work around, I love it! I would definitely use it if the road edge didn't vary from the centreline so much. I will definitely retain that method in the brain databank, thank you!

              1 Reply Last reply Reply Quote 0
              • bikerchrisB Offline
                bikerchris
                last edited by

                Sorry, forgot to attach this, which shows how non-uniform the road edge is when related to the centreline.


                screenshot-sketchup-help-of-cad.png

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

                  Sorry if these are thoughts are too random. I just came up with another idea.

                  Extrude the road edges up and extrude the (elevation-adjusted) center out. Intersect the road edge faces with model. Get the three resulting curves. Lower the outer edges to the approx. relative elevation and skin all with sandbox or another plugin. Use TIG's Extrusion Tools.

                  I think this is faster ๐Ÿ˜ณ


                  Screen Shot 2013-12-21 at 1.51.47 PM.png


                  Screen Shot 2013-12-21 at 1.52.09 PM.png


                  Screen Shot 2013-12-21 at 1.53.15 PM.png


                  Screen Shot 2013-12-21 at 1.54.13 PM.png

                  MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

                    Looking at your image and what you are proposing to work with, it looks like you have to make terrain based on the centerline then drape or intersect your road edges on it--sort of where you began.

                    MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

                      You can scale the resulting polygons that result strung along the centerline. You may need to cut up your centerline to provide enough segments.

                      Edit: I decided to delete this method, cause, though possible is slow way to do it.

                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                      1 Reply Last reply Reply Quote 0
                      • bikerchrisB Offline
                        bikerchris
                        last edited by

                        Hi pdacot,

                        Thank you so much for putting loads of effort into resolutions, they're all great! I'll have a go at both solutions and see how I get on.

                        thanks again!

                        Chris

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

                          If you want to try these. Might be a combination of the two. Use follow-me-and-Keep plugin on the the profile and center line. make the profile wider than the road at any point. Then drape the road edges (or intersect).

                          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                          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