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

    [Plugin][WIP][OpenSource] Bezier Surface

    Scheduled Pinned Locked Moved Plugins
    245 Posts 69 Posters 47.4k Views 69 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.
    • thomthomT Offline
      thomthom
      last edited by

      @jolran said:

      Do you use Knotvectors for the patches ? Or are they interval-based type powerbasis functions ?
      Edit: Ah right, they are not spline-based, (duh). So you go through the C-extensioncode right ?

      It's simple bezier quad patches with 4x4 control points each. The bezier calculation is based on the bezier example script posted by @last many years ago, I just ported it to C for faster calculations. You can see the source in TT_Lib2.

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        @jolran said:

        How do you add Tripatch to Qaudpatch ? Possible ?

        No, this was on my todo, once the quad patches was done. I removed the main toolbar button for it right before release, but forgot there was menu items and that second webdialog toolbar. I should push a new update the removes the unused controls in the dialog.

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          @box said:

          This rough test torso is less than five minutes work.

          Really? 😲 I didn't expect the extension to be that useful in it's current state. I hope people do post back more picture.

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • OxerO Offline
            Oxer
            last edited by

            Thanks you very much for the plugin!! πŸ‘ πŸ‘
            I installed it in SU2014 & SU2015 on Mac but the plugin didn't work, I found a conflict with smartdrop.rb and Sketchyphysics, I deleted smartdrop.rb (I use tt.raytracer now to drop components) and I have deactivated Sketchyphysics on SU2014 with Sketchucation Plugins Manager and Bezier Surface work fine now.
            😍

            "The result is the end what is important is the process" by Oxer
            [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              @panixia said:

              it looks super nice thank you but it doesn't work for me (sketchup 8 on win7).. 😒
              i suppose i installed it properly and also updated ttlib to last version..
              i suspect it may depends on some conflict with tons of other plugins.. πŸ˜’

              Should work with SU7 and up, I think. Any error messages?

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @jolran said:

                @unknownuser said:

                it looks super nice thank you but it doesn't work for me (sketchup 8 on win7)

                Same here. I only had it working in 2014.

                Error "defined method `force_encoding' for #String:0xb10993c"

                This is "probably" and Ruby 1.8 error. I have the impression that many authors will stop supporting SU 8 soon.

                Yea, with my new subdivison extension I'm certainly dropping support for anything older than SU2014.

                Though this was written before SU2014 and it should work. (Though might have introduced a bug when I added SU2014 support. Can you provide the full error message and exact SketchUp version and OS?)

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @panixia said:

                  yeah. force encoding blablabla.. getting similar message when loading sketchup

                  The bla bla bla bit of error message is in fact very useful for developers when debugging errors - please post all of it when reporting issues.

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    @jolran said:

                    It may have be a condition set on line 26 in the loader rb
                    "file = FILE.dup.force_encoding("UTF-8")"

                    Ah - right, I'll fix that and push an update next week.

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      @unclex said:

                      It's just always updating...

                      Like the GIF[attachment=0:1br0oo34]<!-- ia0 -->8.gif<!-- ia0 -->[/attachment:1br0oo34]

                      Cannot Click or DoubleClick

                      and when SU opening, nothing prompt

                      Any errors in the Ruby Console?
                      What SketchUp version?

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @oxer said:

                        Thanks you very much for the plugin!! πŸ‘ πŸ‘
                        I installed it in SU2014 & SU2015 on Mac but the plugin didn't work, I found a conflict with smartdrop.rb and Sketchyphysics, I deleted smartdrop.rb (I use tt.raytracer now to drop components) and I have deactivated Sketchyphysics on SU2014 with Sketchucation Plugins Manager and Bezier Surface work fine now.
                        😍

                        SketchyPhysics is known to clash with extensions. I think an update is coming.
                        Not sure about smartdrop.rb - not familiar with that one.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • OxerO Offline
                          Oxer
                          last edited by

                          A quick test taking like reference the torso of Box.

                          Quick Torso Femenino.jpg

                          "The result is the end what is important is the process" by Oxer
                          [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                          1 Reply Last reply Reply Quote 0
                          • panixiaP Offline
                            panixia
                            last edited by

                            @thomthom said:

                            @panixia said:

                            yeah. force encoding blablabla.. getting similar message when loading sketchup

                            The bla bla bla bit of error message is in fact very useful for developers when debugging errors - please post all of it when reporting issues.

                            i'm pretty much sure that the "blablabla" part of the message returned ad least 3 different values with different tries (that's pretty odd i suppose) the last try being: "Loading File tt_bezier_surface.rb
                            undefined method `force_encoding' for #String:0xec947b8no such file to load --" 😲
                            hope this can help

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by

                              I'll mainly focus on my subdivision extension over this one. Though I'll try to maintain small bug fixes and pull requests. I'll see after SUbD is done what I do with this project.

                              Btw, I have a fix for the compatibility bug with SU2013 and older. I'll be pushing an update.

                              Thomas Thomassen β€” SketchUp Monkey & Coding addict
                              List of my plugins and link to the CookieWare fund

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

                                @unknownuser said:

                                I'll mainly focus on my subdivision extension over this one

                                I understand.

                                @unknownuser said:

                                Btw, I have a fix for the compatibility bug with SU2013 and older. I'll be pushing an update.

                                πŸ‘

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

                                  When there is incompatibility (Sketchyphysics 3, SKalp, (my case) etc...
                                  Who is faulty ? These plugins or Bezier Surface ?

                                  @oxer : Rodin 2 πŸ˜„

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

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    Bezier Surface is confined to its own namespace - so the only thing I can think of would be possibly other extension clashing with observers. SketchyPhysics has been known to clash with many extensions - though I'm not sure if it's been updated recently to address that.
                                    Odd if Skalp clashes... maybe observer fights?
                                    Do you get any errors in the Ruby Console?

                                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

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

                                      @unknownuser said:

                                      Do you get any errors in the Ruby Console?

                                      See my previous posts from here

                                      Messages were the same that the restant on my post linked πŸ˜‰

                                      So for have no message errors I disconnect plugins after plugins.

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

                                      1 Reply Last reply Reply Quote 0
                                      • CadFatherC Offline
                                        CadFather
                                        last edited by

                                        ok, in my case progressbar.rb is the culprit

                                        now it's smartdrop

                                        it changes.. πŸ˜†

                                        1 Reply Last reply Reply Quote 0
                                        • U Offline
                                          unclex
                                          last edited by

                                          @thomthom said:

                                          Re: [Plugin][WIP][OpenSource] Bezier Surface

                                          Postby thomthom Β» Mon Nov 24, 2014 4:18 am

                                          unclex wrote:It's just always updating...
                                          
                                          Like the GIF
                                          8.gif
                                          
                                          
                                          
                                          Cannot Click or DoubleClick
                                          
                                          and when SU opening, nothing prompt
                                          

                                          Any errors in the Ruby Console?
                                          What SketchUp version?

                                          Now I Know what happened
                                          Smartdrop clash with TTlib2
                                          something named "definition"

                                          so I change "definition" to "a4sddefinition" @ smartdrop.rb
                                          and it works

                                          Smartdrop.rb

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

                                            .

                                            here's a simple introductory example.. maybe something a lot of people can use..
                                            seamless background for rendering


                                            1- draw the patch next to a flat plane:
                                            1.png


                                            2- double click the patch to enter the editing mode.. select the back line:
                                            2.png


                                            3- using the blue arrow on the gizmo, move the edge vertical:
                                            3.png


                                            4- using the red arc, rotate the edge downwards 90ΒΊ (degrees will be shown in the measurement box)
                                            4.png


                                            5- using the blue square, scale downwards.. align the green control point with the green axis
                                            5.png


                                            6- change the segmentation in the measurements box (i think i used 20)

                                            6.png



                                            DreamCar.jpg

                                            dotdotdot

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 9 / 13
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement