• Login
sketchucation logo sketchucation
  • Login
πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

Ruby challenge 2 ?

Scheduled Pinned Locked Moved Developers' Forum
18 Posts 8 Posters 2.3k 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.
  • M Offline
    Matt666
    last edited by 4 Nov 2008, 06:34

    😲 😲 😲
    Wow !! You're the man, Fredo !!
    Thank you so much !

    Frenglish at its best !
    My scripts

    1 Reply Last reply Reply Quote 0
    • F Offline
      fredo6
      last edited by 4 Nov 2008, 07:48

      Matt,

      Here is a rather brute force version functioning for a single face, when selected. It works in 3D.
      BFBBox.jpg

      The command is in the menu Plugins "Best Bounding Box for a single face" (there is no icon).
      You can extract the algorithm (3 methods) from the code to do what you have in mind. On my side, I may use it to develop a Face Scaling macro that use the Best-fitting bounding rectangle instead of the default box aligned on axes.

      The bounding box (actually always a rectangle) is created as a Group.

      Fred


      bbface.rb

      1 Reply Last reply Reply Quote 0
      • F Offline
        free agent
        last edited by 5 Nov 2008, 07:40

        this would be good for making proxy objects (when vray decides to implement proxies 😠 )

        http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

        1 Reply Last reply Reply Quote 0
        • M Offline
          Matt666
          last edited by 5 Nov 2008, 07:45

          What is a proxy object ?

          Frenglish at its best !
          My scripts

          1 Reply Last reply Reply Quote 0
          • R Offline
            remus
            last edited by 5 Nov 2008, 07:49

            Its like a dummy piece of geometry that you place instead of something else. In the case of render engines, its usually used so your scene can be kept low poly, but when you export to the render engine, it will load up a high poly component in place of the low poly proxy.

            Very useful for trees and the like.

            http://remusrendering.wordpress.com/

            1 Reply Last reply Reply Quote 0
            • M Offline
              Matt666
              last edited by 5 Nov 2008, 07:53

              Ok, thank you Remus !

              Frenglish at its best !
              My scripts

              1 Reply Last reply Reply Quote 0
              • R Offline
                remus
                last edited by 5 Nov 2008, 07:55

                No worries, its nice to be able to contribute to the ruby forum for once πŸ˜›

                http://remusrendering.wordpress.com/

                1 Reply Last reply Reply Quote 0
                • M Offline
                  minguinhirigue
                  last edited by 23 Nov 2008, 11:53

                  Did anyone was able to do the same for groups or any volume ?

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 23 Nov 2008, 19:55

                    The "untransformed bounds" is now a new group property accessible in the v7 API...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      minguinhirigue
                      last edited by 29 Nov 2008, 14:20

                      WHOA, So I have to give a try to the free versionof SU7, but, I think my computer will begin to say ARRGHH... (quite old... 😳)

                      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