[Plugin] Counttriangles.rb by Eleandor
-
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:
- Download the rubyscript here
- Put the downloaded file (counttriangles.rb) in the Sketchup/Plugins folder
- 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 trianglesUpdate: encapsulated the code in a module... Shouldn't cause conflicts with other plugins now.
BTW i asked permission before posting it here.
-
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.
-
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.
-
@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
Advertisement