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

    Guide Points: Dividing a poly-line in even segments

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    7 Posts 4 Posters 1.1k Views 4 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.
    • S Offline
      Shpox
      last edited by

      Hi guys, have a question about dividing lines into segments. I'm currently using the 1001 tool suite's 'divide selected edge' tool to place guide points on line segments.

      This works fine 99% of the time, however it doesn't work on lines that have been welded together. Also, if a have multiple connected line segments of different legnths that aren't in a straight line that I wish do divide evenly, this won't work either.

      In short is there a way around dividing a line that has been 'welded' together? I'm guessing SU reads this line a bunch of line segments, rather than one. πŸ’š

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

        Have a look at Fredos http://sketchucation.com/pluginstore?pln=BezierSpline (BZ transform).

        my SketchUp gallery

        1 Reply Last reply Reply Quote 0
        • S Offline
          Shpox
          last edited by

          Thanks cotty. ALready use BZ but didn't check out all of the options. Converting any existing lines into polylines didn't quite do the trick. The 1001 guide divider still wont pick it up.

          Interestingly, using the BZ polyline divider kind of works but it ultamately simplifies the geometery of the line into segments instead of using guide points. Not the result I'm looking for.

          I've attached a image that showcases the issue. The 1001 guide point divider is based off line segments. It won't work on poly-lines to deliver guide points.

          Surely they must be a way to place guide points on polylines?

          Had a look at TT's Guide tools too but I don't think it offers guides at a particular distance.


          Untitled-2.jpg

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

            @shpox said:

            Hi guys, have a question about dividing lines into segments. I'm currently using the 1001 tool suite's 'divide selected edge' tool to place guide points on line segments.

            This works fine 99% of the time, however it doesn't work on lines that have been welded together. Also, if a have multiple connected line segments of different legnths that aren't in a straight line that I wish do divide evenly, this won't work either.

            In short is there a way around dividing a line that has been 'welded' together? I'm guessing SU reads this line a bunch of line segments, rather than one. πŸ’š

            I have two plugins, AddPts2Curve and EqSegCurve, on my blog that may be of some use.

            AddPts2Curve has two options. One to add points at a given interval along a curve or place a guide point where those point would be located.

            EqSegCurve also has two options. The curve can be divided into a given number of segments or segments of a given length.

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

            http://sdmitch.blogspot.com/

            1 Reply Last reply Reply Quote 0
            • S Offline
              Shpox
              last edited by

              Hi Mitch, thanks for the help. First time I've come across your blog so I downloaded quite a few plugins.

              I had some success with addpts2curve, it works great on polylines, but I was wondering about how you would go about doing something like the bookshelf I've attached.

              The overall form is easy enough to come up with arcs but I'm not sure about how to segment it evenly.


              Untitled-1.jpg

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

                @shpox said:

                Hi Mitch, thanks for the help. First time I've come across your blog so I downloaded quite a few plugins.

                I had some success with addpts2curve, it works great on polylines, but I was wondering about how you would go about doing something like the bookshelf I've attached.

                The overall form is easy enough to come up with arcs but I'm not sure about how to segment it evenly.

                Something like this...

                1. weld the arcs to make a curve and use the Offset Tool to make front and back edges.
                2. divide the length of the curve, from entity info, by number of desired divisions to get segment length.
                3. use AddPts2Curve to show points at that interval.
                4. use Protractor Tool to establish 90 deg guide lines.
                5. use Pencil Tool to draw segment boundaries.

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

                http://sdmitch.blogspot.com/

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

                  To draw edges between 2 curves (step 5)you could paste this into some Ruby code editor.
                  Untested..

                  a=Sketchup.active_model;b=a.entities;c=a.selection;d={};c.grep(Sketchup;;Edge).each{|e|if cc = e.curve;next if d.has_key?(cc);d[cc] = cc.vertices.collect{|v| v.position };end};if d.length == 2;crvpt1 = d.values[0];crvpt2 = d.values[1];unless crvpt1.length == crvpt2.length;puts "unmatching points from curves";else;gps = b.add_group.entities;for i in (0...crvpt1.length);gps.add_edges(crvpt1[i], crvpt2[i]);end;end;else;puts "Select only 2 curves, please";end 
                  

                  Edit: Compressed it to 1 line for pasting into Ruby consol..

                  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