sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    Offset non coplanar curve

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    16 Posts 8 Posters 2.6k Views 8 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.
    • cottyC Offline
      cotty
      last edited by

      @cotty said:

      Not the direct way, but a kind of workaround:

      • select edges
      • extrude lines in blue direction (TIG extrude tools or Didiers Projections)
      • Scale with shift pressed
      • move up the scaled edges

      Example:

      offset_noncoplanar.jpg

      my SketchUp gallery

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

        If Pilou is right, you could follow-me a shape and get rid of all but the required surface, Or there are many different ways. Scale a copy of the loop plus curviloft? (on test, this last would be my choice)

        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

          You want this offset ?
          red one or blue one ?

          this1.jpg

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

          1 Reply Last reply Reply Quote 0
          • C Offline
            cuttingedge
            last edited by

            @cotty said:

            @cotty said:

            Not the direct way, but a kind of workaround:

            • select edges
            • extrude lines in blue direction (TIG extrude tools or Didiers Projections)
            • Scale with shift pressed
            • move up the scaled edges

            Example:

            [attachment=0:1yudu5tp]<!-- ia0 -->offset_noncoplanar.jpg<!-- ia0 -->[/attachment:1yudu5tp]

            yes this is the offset im talking about. your workarounds are all fine but i want to know whether is possible to project out a face with equal distance ( as in normal coplanar offset)

            I tried doing the scale from center by pressing ctrl but this will not give me uniform offset distance
            if my object is not circular as your example..

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

              You want to hit Ctrl and shift to scale uniformly about the center.


              Ctrl ans Shift.gif

              1 Reply Last reply Reply Quote 0
              • C Offline
                cuttingedge
                last edited by

                @sdmitch said:

                This code will create a horizontal offset curve.

                Thanks Sdmitch this might just be what im looking for but i need faces generated upon offset. πŸ˜›

                and to be honest, i dont know how to work with codes πŸ˜’

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

                  Another version. Offset by Curviloft.
                  Copy, paste in place, scale, curviloft.


                  Offset.gif

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

                    @cuttingedge said:

                    hi guys I want to offset a non coplanar loop but I don't know which tool to use.

                    If there was a face, I could use Tools on surface. But there is none.

                    Thomthom's vertex tools could project faces along a direction but is it possible to say project outwards, from the center or say a distance from the edge. please see below.

                    This code will create a horizontal offset curve and faces.

                    mod = Sketchup.active_model
                    ent = mod.active_entities
                    sel = mod.selection
                    unless sel.empty?
                     crv = sel.first.curve
                     if crv
                      @osd ||= '1'.to_l
                      inp=UI.inputbox(["Offset;"],[@osd],"Horizontal curve offset")
                      if inp
                       @osd = inp[0]
                       edg=crv.edges;op=[];cp=[]
                       pv=edg[-1].line[1]
                       pvx=pv.axes[0]
                       for e in edg
                        p,v=e.line; vx,vy,vz=v.axes
                        ang=pvx.angle_between(vx);
                        vx.reverse! if ang > 90.degrees
                        bv = v + pv.reverse; bv.z=0
                        ang=v.angle_between(pv.reverse)/2
                        bv.length = -@osd/Math.sin(ang)
                        op<<p.offset(bv);cp<<p
                        edge=ent.add_line(p,op.last)
                        pvx=vx; pv=v
                       end
                       op<<op.first
                       ent.add_curve(op)
                       for i in 0...cp.length
                        e=ent.add_line(cp[i-1],op[i])
                        e.find_faces
                       end
                      end
                     else
                      UI.messagebox "Select Curve"
                     end
                    else
                     UI.messagebox "Select Curve"
                    end
                    
                    

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

                    http://sdmitch.blogspot.com/

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cuttingedge
                      last edited by

                      @box said:

                      Another version. Offset by Curviloft.
                      Copy, paste in place, scale, curviloft.

                      Oh yeah why not, that's the way to go. Hehe, maybe I was just thinking this functionality
                      is available vertex tools... maybe in the next version πŸ˜„

                      Thanks Box for taking time to demo your tips box. How do you do this quick movies?

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

                        I should put it in my signature I get asked so often.
                        It's a little screen grab program called gifcam.

                        1 Reply Last reply Reply Quote 0
                        • jeff hammondJ Offline
                          jeff hammond
                          last edited by

                          .

                          what if the shape is something like this?

                          whatif.jpg

                          (just meaning to point out that scaling and offsetting aren't the same thing.. it only looks like the same thing on circles)
                          [add- and squares and equilateral triangles]


                          dotdotdot

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            cuttingedge
                            last edited by

                            @jeff hammond said:

                            .

                            (just meaning to point out that scaling and offsetting aren't the same thing.. it only looks like the same thing on circles)
                            [add- and squares and equilateral triangles]


                            Good point Jeff, I know, everyone's suggestions are workaround as theres no available plugin I believe that does this directly. My issue with scaling is not having equal distance of projections. Another approach I thought is below using joint push pull.


                            use joint pushpull to offset outwards equally.png

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              rv1974
                              last edited by

                              ancient 'extrudelinetool'+JPP is the way do do it effectively.
                              @box: thanks for Gifcam.


                              qqqq.gif

                              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