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

    [Plugin] Counttriangles.rb by Eleandor

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 8.3k Views 3 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.
    • MarianM Offline
      Marian
      last edited by

      the original post can be found here
      http://www.infinity-universe.com/Infinity/index.php?option=com_smf&Itemid=75&topic=5875.80

      @unknownuser said:

      I've written a very small and simple ruby script for Sketchup that gives a pretty accurate estimation of the trianglecount of the model. It can probably be useful to people using the free version of sketchup.

      How to install the script:

      1. Download the rubyscript here
      2. Put the downloaded file (counttriangles.rb) in the Sketchup/Plugins folder
      3. Restart sketchup and use the "Count triangles in model" option under "plugins".

      You can also only count triangles of your current selection (useful if you have a lot of 'temporary' objects you don't wish to remove)

      Early tests give a pretty good result, for example:

      The Bellerophon (from ftp)
      .3DS: 98 788 triangles
      .kmz: 76 888 triangles (--> inaccurate)
      The plugin: 96 132 triangles

      Update: encapsulated the code in a module... Shouldn't cause conflicts with other plugins now.

      BTW i asked permission before posting it here.


      counttriangles.rb

      http://marian87.deviantart.com/

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

        That's interesting. I've never felt the Face Count very useful indicator to whether it's a heavy model or not, since graphic cards ultimately deals with triangles. A face can be any number of triangles.

        Thanks for posting.

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

        1 Reply Last reply Reply Quote 0
        • MarianM Offline
          Marian
          last edited by

          It's not about a model being heavy or not, this might be more usefull to people that make models for games, where there is a a limit of how many traingles they can use.

          http://marian87.deviantart.com/

          1 Reply Last reply Reply Quote 0
          • ken28875K Offline
            ken28875
            last edited by

            @marian said:

            this might be more useful to people that make models for games, where there is a a limit of how many triangles they can use.

            Thanks, Marian.

            Very useful plugin indeed, since i work in the game industry and do all my conceptual models with Sketchup, before exporting into Maya or the game engine.

            Take care,

            _KN

            Follow Your Dreams.

            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