• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Mini-challenge

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
328 Posts 26 Posters 29.1k Views 26 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.
  • T Offline
    thomthom
    last edited by 30 Apr 2012, 18:05

    @unknownuser said:

    ha.. i always figured you ruby gurus were math wizards.. πŸ˜„

    You really don't need to muddle around with math too much when making plugins for SketchUp. Their API is doing lots of the heavy work. I don't even fully understand the transformation matrix - though reading up on that now.

    @unknownuser said:

    nice to know you're sitting around looking things up on a per case basis like the rest of us πŸ˜‰

    I do that for everything I do - always. Simply because I like to know I'm doing stuff correct and efficient.

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

    1 Reply Last reply Reply Quote 0
    • J Offline
      jason_maranto
      last edited by 30 Apr 2012, 18:09

      This method still works as expected no matter the distance -- the problem is just that the rotate tool is not precise enough to put the guidepoint exactly where it should be.

      challenge_alt3.jpg

      @Jeff -- yeah, sorry my habit is to bring them into a model via the component browser, so it was my fault.

      Best,
      Jason.

      I create video tutorial series about several 2D & 3D graphics programs.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gilles
        last edited by 30 Apr 2012, 18:32

        I 've found a tricky way.


        Mini-challenge.skp

        " c'est curieux chez les marins ce besoin de faire des phrases "

        1 Reply Last reply Reply Quote 0
        • J Offline
          jeff hammond
          last edited by 30 Apr 2012, 18:33

          @dave r said:

          That stuck with me, too. I can't remember who I took to prom, though.

          πŸ˜†

          (I don't think I even went to prom.. maybe)

          dotdotdot

          1 Reply Last reply Reply Quote 0
          • J Offline
            jeff hammond
            last edited by 30 Apr 2012, 18:34

            @gilles said:

            I 've found a tricky way.

            really? sweet!
            I'm on a phone now so I can't see it but the suspense is killing me πŸ˜„

            can anyone verify?

            dotdotdot

            1 Reply Last reply Reply Quote 0
            • J Offline
              jason_maranto
              last edited by 30 Apr 2012, 18:38

              Wow, that is tricky... I never would have approached it that way.

              What gave you the answer?

              Best,
              Jason.

              I create video tutorial series about several 2D & 3D graphics programs.

              1 Reply Last reply Reply Quote 0
              • A Offline
                andybot
                last edited by 30 Apr 2012, 18:42

                Nice one! works for me!

                http://charlottesvillearchitecturalrendering.com/

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gilles
                  last edited by 30 Apr 2012, 18:47

                  I dont even know, just an intuition.
                  So do I won something? πŸ’š

                  " c'est curieux chez les marins ce besoin de faire des phrases "

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 30 Apr 2012, 18:48

                    @gilles said:

                    So do I won something? πŸ’š

                    Yes - the honor of authoring the next challenge! πŸ˜„

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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thomthom
                      last edited by 30 Apr 2012, 18:59

                      Unfortunately - the lines are not parallel:
                      Accuracy.png

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

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jeff hammond
                        last edited by 30 Apr 2012, 19:07

                        @thomthom said:

                        Unfortunately - the lines are not parallel:
                        [attachment=0:1xhfujx7]<!-- ia0 -->Accuracy.png<!-- ia0 -->[/attachment:1xhfujx7]

                        bah!
                        I was hoping gilles nailed it

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          andybot
                          last edited by 30 Apr 2012, 19:19

                          @thomthom said:

                          Unfortunately - the lines are not parallel:

                          What's missing? I redid it from scratch. I would suggest drawing a guide-line inferenced perpendicular to the new diagonal lines. (I group the newly drawn diagonals so I can rotate exactly to the perpendicular.)


                          diagonal1.skp

                          http://charlottesvillearchitecturalrendering.com/

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 30 Apr 2012, 19:22

                            My solution - many posts back - using my True-Tangents script's 'True Intersections' - finds the correct point to be used...
                            It also uses "trigonometry" to calculate the values for the point - like the DC...
                            It's as accurate as you can get.

                            My subsequent "plugin-free" approach does it by say three rotate/scale combos until the accuracy is so tiny it could be ignored...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jason_maranto
                              last edited by 30 Apr 2012, 19:24

                              I'm also still adamant that the previous approach I showed will work fine -- the only sticky thing about this approach is you may have to manually enter the rotation as the rotate tool will not allow for fine enough control of placing the construction point. The width of the beam stays absolutely perfect -- and the only precision issue is the height of the beam before rotation (as set by the construction point).

                              challenge_alt4.jpg

                              Bonus here -- no maths 😍

                              Best,
                              Jason.

                              I create video tutorial series about several 2D & 3D graphics programs.

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                andybot
                                last edited by 30 Apr 2012, 19:32

                                @tig said:

                                My solution - many posts back - using my True-Tangents script's 'True Intersections' - finds the correct point to be used...
                                It also uses "trigonometry" to calculate the values for the point - like the DC...
                                It's as accurate as you can get.

                                Nice, yes, that method gets the intersection point correctly as not relying on the segmented SU cricle for the intersection. Thanks for pointing out your tangents tool. I still will use ACAD when it comes to using arcs and circles. πŸ˜•

                                http://charlottesvillearchitecturalrendering.com/

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  andybot
                                  last edited by 30 Apr 2012, 19:33

                                  @jason_maranto said:

                                  I'm also still adamant that the previous approach I showed will work fine --

                                  but fine is not exact... that's the whole point isn't it.

                                  http://charlottesvillearchitecturalrendering.com/

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jason_maranto
                                    last edited by 30 Apr 2012, 19:43

                                    Yes, but I am getting down into 1000ths of a degree on that rotation -- I'm not sure how much more precise it can be without being fully automated... we humans tend to fudge it, but computers can go much more precise in practice -- regardless, you will never build something with wood that will be more precise than what we are doing here. So I think any of these are decent enough for most users... after all this isn't meant to be an engineering program.

                                    Let me put it to you another way, when I do a solid operation (unite/outer shell) there is no gap or extra faces -- it's perfect -- and I think that is about as good of a precision as you are going to get from SketchUp.

                                    Here's the file check for yourself: challenge_altfinal.skp

                                    How I got there: challenge_alt2.jpg

                                    Best,
                                    Jason.

                                    I create video tutorial series about several 2D & 3D graphics programs.

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      jeff hammond
                                      last edited by 30 Apr 2012, 19:57

                                      @jason_maranto said:

                                      Yes, but I am getting down into 1000ths of a degree on that rotation --

                                      that's fine and as i said earlier, there are plenty of ways to get it 'close enough' for construction purposes..

                                      the challenge though, at least for this thread, is to get it 100% perfect..

                                      and if you give up at 'close enough' then you'll quit exploring ways to make it precise πŸ˜‰

                                      so while a 100% solution to this challenge isn't totally necessary for me to get a dimension for a cut-list, a 100% solution is necessary to relax the πŸ€“ in some people..

                                      dotdotdot

                                      1 Reply Last reply Reply Quote 0
                                      • pbacotP Offline
                                        pbacot
                                        last edited by 30 Apr 2012, 19:57

                                        Jason may have a point about the precision. The idea is that in doing work that requires this precision (such as survey), where close can give results further out that are way off-- would you EVER be using SU anyway?

                                        Jason you mention entering the rotation manually. Where do you get the angle from? I guess, on the other hand, I think a failsafe technique was sought rather than a function of someone's eyeball ability and time available (which we seem to have ample between us... πŸ˜• )

                                        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thomthom
                                          last edited by 30 Apr 2012, 20:00

                                          Problem is that tiny fractions of inaccuracy can very easily cascade into the rest of the model where you start getting issues. Ever so often when I import DWG files I end up with lots of issues where things are nearly square, nearly perpendicular etc. Initially SU treats them as "good enough" bug eventually this inaccuracy creeps over to the point where SU doesn't treat them as square and parallel. In worst scenarios I get models where splitting faces creates duplicate overlapping faces. That's why I don't like settling for "good enough"...

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

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 16
                                          • 17
                                          • 6 / 17
                                          6 / 17
                                          • First post
                                            108/328
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement