sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin] Model Info

    Scheduled Pinned Locked Moved Plugins
    24 Posts 10 Posters 27.4k Views 10 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 thomthom

      Overview
      Outputs the model statistics to either console or file.

      Model Info

      Version 1.1.0
      Count the triangles of each face. In tests this is more than three times slower - so it has been made into an extended function.

      Extended Model Info

      Counting triangles is more accurate indication to how complex the model is. As the following screenshot illustrate - the two scenes has identical number of faces, but the number of triangles required to generate the faces is significantly different due to the inner holes in the upper example.
      Face count vs Triangle count

      Version 1.2.0
      Outputs the component statistics.

      ModelInfoCompStat.png

      Access
      Plugins > Model Info

      Features

      • Statistics to File
      • Statistics to Console
      • Extended Statistics to File (1.1.0)
      • Extended Statistics to Console (1.1.0)

      Requirements

      • SketchUp 6 or newer - ( Other versions untested )
      • TT_Lib2 (v2.4.0)

      Link Preview Image
      SketchUp Plugins | PluginStore | SketchUcation

      SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

      favicon

      (sketchucation.com)

      Footprint

      http://forums.sketchucation.com/download/file.php?id=53762
      <Sketchup>/Plugins/
      +-
      http://forums.sketchucation.com/download/file.php?id=53763
      tt_model_info.rb

      http://forums.sketchucation.com/download/file.php?id=53761

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

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Nifty! 👍

        Gai...

        1 Reply Last reply Reply Quote 0
        • soloS Offline
          solo
          last edited by

          Thom, how about a call out on how many poly's have been used?

          http://www.solos-art.com

          If you see a toilet in your dreams do not use it.

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

            You mean triangles?

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

            1 Reply Last reply Reply Quote 0
            • Rich O BrienR Offline
              Rich O Brien Moderator
              last edited by

              Doesn't Fredo have this?

              http://forums.sketchucation.com/viewtopic.php?t=30976

              Download the free D'oh Book for SketchUp 📖

              1 Reply Last reply Reply Quote 0
              • soloS Offline
                solo
                last edited by

                Ah, cool one, never seen that before, thanks Rich.

                Thom, I guess there is a lot more to it than just reporting amount of faces as SU does not use triangles, they are n-gons.
                Kinda hard to figure out SU's limit due to this inconsistency, had it been triangle based one could get a clearer idea.

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • GaieusG Offline
                  Gaieus
                  last edited by

                  If you export your model to 3ds or dae, it will get triangulated. When re-importing without merging co-planar faces, you get a clearer poly count with triangles.

                  Gai...

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

                    @solo said:

                    Thom, I guess there is a lot more to it than just reporting amount of faces as SU does not use triangles, they are n-gons.
                    Kinda hard to figure out SU's limit due to this inconsistency, had it been triangle based one could get a clearer idea.

                    Can extract the internal triangulation. SU makes that available to the API. My Probe plugin lets you inspect how SU triangulates faces.

                    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

                      Ok. Did a quick update - added triangle count if you choose Extended Model Info. (Note it's at least three times slower.)

                      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
                        glro
                        last edited by

                        @thomthom said:

                        Overview
                        Outputs the model statistics to either console or file.
                        ...

                        http://forums.sketchucation.com/download/file.php?id=53761

                        this is interesting...

                        when you choose statistics, you have 2 options:

                        entire model (that's what you exported)
                        components

                        could you do the same job, but for "components" instead, and precisely with the developped hierarchy?

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

                          @glro said:

                          could you do the same job, but for "components" instead, and precisely with the developped hierarchy?

                          You mean the stats for a selected component?

                          What do you mean by the "developed hierachy"?

                          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
                            glro
                            last edited by

                            @thomthom said:

                            @glro said:

                            could you do the same job, but for "components" instead, and precisely with the developped hierarchy?

                            You mean the stats for a selected component?

                            What do you mean by the "developed hierachy"?

                            the stats for components, instead of "for the whole model"

                            this...


                            essai_CR.jpg

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

                              Oooh... I never noticed that option before! 😲

                              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
                                glro
                                last edited by

                                @thomthom said:

                                Oooh... I never noticed that option before! 😲

                                if you choose this option, the statistics include the nestled components
                                the whole problem is: how to retrieve this information?

                                i think i might have a solution coming, but since it is not finished, i have to wait

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

                                  I can make it produce that info - just got to wait until next week. Moving apartment this weekend.

                                  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

                                    @glro said:

                                    @thomthom said:

                                    Oooh... I never noticed that option before! 😲

                                    if you choose this option, the statistics include the nestled components
                                    the whole problem is: how to retrieve this information?

                                    i think i might have a solution coming, but since it is not finished, i have to wait

                                    Version 1.2.0
                                    Outputs the component statistics.

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

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


                                      http://farm6.static.flickr.com/5209/5257263915_2ab6ebeda3_z.jpg

                                      Thomthom, thank you for this cool plugin. I have noticed an odd thing, though. I copied and pasted a few components from a file called "spinet desk" to a new file and saved it as a new file. Evidently the plugin is still looking at the other, closed original file and giving the stats for that as well. Or is it possible the console isn't cleared when switching to a different SKP file? Is it possible to clear the contents of the console before processing and displaying a new run of the plugin?

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

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

                                        @dave r said:

                                        vidently the plugin is still looking at the other, closed original file and giving the stats for that as well. Or is it possible the console isn't cleared when switching to a different SKP file?

                                        The console output is not interactive. Just a history of the output. You find the latest output at the bottom. Notice that in your screenshot it says "Drawer.skp" further down.

                                        @dave r said:

                                        Is it possible to clear the contents of the console before processing and displaying a new run of the plugin?

                                        I have a Windows hack I could add. Don't know how to do it for OSX. ...but you might have some that don't want it cleared... I'd rather not add too many options to this. It's just a quick and dirty plugin.

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

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

                                          Understood. Thank you for this.

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            Ben Ritter
                                            last edited by

                                            Thank you again TIG.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement