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

[Plugin] Draw Boundingbox

Scheduled Pinned Locked Moved Plugins
39 Posts 18 Posters 31.2k Views 18 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.
  • D Offline
    Didier Bur
    last edited by 4 Jul 2010, 21:30

    Hi Thomthom,
    I was wondering if it is really useful to store options in the registry (read/write_defaults).
    Adding more and more reg keys will slow down the computer or not ? What do you think ?

    DB

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 4 Jul 2010, 21:34

      I don't think the overhead of extra registry items is that significant. I'd rather use the registry and the built-in API than to start littering small preference files about and adding extra complexity. Processing many small files also has its overhead.

      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 4 Jul 2010, 21:34

        Are there alternatives?

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

        1 Reply Last reply Reply Quote 0
        • D Offline
          dedmin
          last edited by 4 Jul 2010, 23:01

          πŸ‘ πŸ‘ πŸ‘ πŸ‘

          1 Reply Last reply Reply Quote 0
          • B Offline
            bagatelo
            last edited by 6 Jul 2010, 11:54

            Why the boundingbox is not attached with object? Why we cannot make boundingbox with only edges?

            While the cat's away, the mice will play

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 6 Jul 2010, 11:59

              @bagatelo said:

              Why the boundingbox is not attached with object? Why we cannot make boundingbox with only edges?

              No one asked... πŸ˜‰

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

              1 Reply Last reply Reply Quote 0
              • D Offline
                dedmin
                last edited by 6 Jul 2010, 12:37

                @thomthom said:

                @bagatelo said:

                Why the boundingbox is not attached with object? Why we cannot make boundingbox with only edges?

                No one asked... πŸ˜‰

                Oh yes, please! πŸŽ‰ πŸŽ‰

                1 Reply Last reply Reply Quote 0
                • K Offline
                  ken
                  last edited by 6 Jul 2010, 13:43

                  Thomthom

                  Designing and fabricating large but still truck-able steel equipment, I find your plugin an easy to use method to determine the width, height and length of each section for the trucking company. You have made it easier to determine how to arrange a load on the truck bed to minimize the requirements for oversize load permits.

                  Thanks

                  Ken

                  Fight like your the third monkey on Noah's Ark gangway.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 7 Jul 2010, 06:18

                    huh - again the simplest of plugins turns out to be of wider usage than I thought. I figured it was a rather obscure request. πŸ˜„

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

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      agamemnus
                      last edited by 7 Jul 2010, 06:35

                      Very useful for my game -- to center models or stretch them appropriately utilizing the length/width/height ratios. Thank you.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pilou
                        last edited by 7 Jul 2010, 06:47

                        That can be used for packaging too πŸ˜‰

                        Next step will be optimisation of placement of some objects for minimize the Bounding box πŸ˜‰

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

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          ken
                          last edited by 7 Jul 2010, 11:37

                          @unknownuser said:

                          That can be used for packaging too πŸ˜‰

                          Next step will be optimisation of placement of some objects for minimize the Bounding box πŸ˜‰

                          Now, that would be very useful.

                          Ken

                          Fight like your the third monkey on Noah's Ark gangway.

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            Ben Ritter
                            last edited by 7 Jul 2010, 14:27

                            Thanks for sharing β˜€

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mitcorb
                              last edited by 7 Jul 2010, 14:50

                              @ThomThom:
                              Just out of curiosity, is the bounding box you create even distantly related to the method of producing a convex hull--or is this even relevant?

                              I take the slow, deliberate approach in my aimless wandering.

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 7 Jul 2010, 15:05

                                Nope - it just uses the corner of the boundingbox SketchUp provides.

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

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  Gaieus
                                  last edited by 8 Jul 2010, 11:46

                                  Hi Thom,

                                  Great plugin (again) but blah-blah... you know that.

                                  I have noticed however that it can be launched when only primitive geometry (i.e. no group/component) is selected then I can even tell the plugin to create a bounding box but of course nothing happens.

                                  Of course, I know why this is happening ("not" happening) so not too big problem but maybe some warning dialog would be best so that users do not get confused.

                                  Gai...

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 8 Jul 2010, 11:52

                                    Couldn't you simply make a temporary group of all selected and then get the bounds of that?

                                    ents=model.active_entities
                                    ss=model.selection
                                    enta=ss.to_a
                                    gp=ents.add_group(enta)
                                    bb=gp.bounds
                                    ### store that data
                                    gp.explode
                                    ### make the bbox
                                    ss.add(enta)
                                    ### OR whatever...
                                    

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      thomthom
                                      last edited by 8 Jul 2010, 11:56

                                      hm... I thought I had some message system that warned about no valid selection. Must have accidentally removed it as I rewrote it

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

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        Gaieus
                                        last edited by 8 Jul 2010, 11:57

                                        I do not mean to create a bounding box for loose geometry - what for? - it's just for other users to avoid confusion.

                                        Also, how about an option that the bounding box is inside/outside of the group/component? (Would be easier to move them together with just one click selection). Of course, in this case there would be the risk of loose geometry merging inside...

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thomthom
                                          last edited by 8 Jul 2010, 11:57

                                          @tig said:

                                          Couldn't you simply make a temporary group of all selected and then get the bounds of that?

                                          ents=model.active_entities
                                          > ss=model.selection
                                          > enta=ss.to_a
                                          > gp=ents.add_group(enta)
                                          > bb=gp.bounds
                                          > ### store that data
                                          > gp.explode
                                          > ### make the bbox
                                          > ss.add(enta)
                                          > ### OR whatever...
                                          

                                          I could just add up the bounds from all the "loose" geometry.

                                          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
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            17/39
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement