by thomthom » Thu Dec 09, 2010 2:09 pm
OverviewOutputs the model statistics to either console or file. ModelInfo.png Version 1.1.0Count the triangles of each face. In tests this is more than three times slower - so it has been made into an extended function. ExtendedModelInfo.png 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. FaceVsTriangles.png Version 1.2.0Outputs the component statistics. ModelInfoCompStat.png AccessPlugins > Model InfoFeatures- 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)
Download tt_model_info.rb Footprint <Sketchup>/Plugins/ +- 
tt_model_info.rb 
Please, register (free) to access all the attachments on the forums.
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Gaieus » Thu Dec 09, 2010 2:17 pm
Nifty! 
Gai...
-

Gaieus
- Administrator
-
- Posts: 27652
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by solo » Thu Dec 09, 2010 2:19 pm
Thom, how about a call out on how many poly's have been used?
My site Quod gratis asseritur, gratis negatur.
-

solo
- Global Moderator
-
- Posts: 10798
- Joined: Mon Nov 12, 2007 1:46 pm
- Location: Dallas, Texas
- Name: Pete Stoppel
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by thomthom » Thu Dec 09, 2010 2:38 pm
You mean triangles?
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Rich O Brien » Thu Dec 09, 2010 2:53 pm
Doesn't Fredo have this? viewtopic.php?t=30976
-

Rich O Brien
- Administrator
-
- Posts: 8320
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Limerick, Ireland
- Name: Rich O'Brien
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by solo » Thu Dec 09, 2010 2:59 pm
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.
My site Quod gratis asseritur, gratis negatur.
-

solo
- Global Moderator
-
- Posts: 10798
- Joined: Mon Nov 12, 2007 1:46 pm
- Location: Dallas, Texas
- Name: Pete Stoppel
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by Gaieus » Thu Dec 09, 2010 3:18 pm
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...
-

Gaieus
- Administrator
-
- Posts: 27652
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by thomthom » Thu Dec 09, 2010 3:24 pm
solo wrote: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.
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Thu Dec 09, 2010 3:49 pm
Ok. Did a quick update - added triangle count if you choose Extended Model Info. (Note it's at least three times slower.)
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by glro » Thu Dec 09, 2010 4:47 pm
thomthom wrote:OverviewOutputs the model statistics to either console or file. ... 
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?
-
glro
-
- Posts: 131
- Joined: Mon Nov 30, 2009 9:45 am
- Location: Spain
- Name: Georges LE ROUX
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
-
by thomthom » Thu Dec 09, 2010 8:47 pm
glro wrote: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"?
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by glro » Thu Dec 09, 2010 9:30 pm
thomthom wrote:glro wrote: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...
Please, register (free) to access all the attachments on the forums.
-
glro
-
- Posts: 131
- Joined: Mon Nov 30, 2009 9:45 am
- Location: Spain
- Name: Georges LE ROUX
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
-
by thomthom » Thu Dec 09, 2010 9:40 pm
Oooh... I never noticed that option before! 
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by glro » Thu Dec 09, 2010 10:03 pm
thomthom wrote: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
-
glro
-
- Posts: 131
- Joined: Mon Nov 30, 2009 9:45 am
- Location: Spain
- Name: Georges LE ROUX
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
-
by thomthom » Thu Dec 09, 2010 10:10 pm
I can make it produce that info - just got to wait until next week. Moving apartment this weekend.
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Mon Dec 13, 2010 1:19 pm
glro wrote:thomthom wrote: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.0Outputs the component statistics.
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Dave R » Mon Dec 13, 2010 3:20 pm

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?
Inspecting mirrors is a job I could easily see myself doing.
-

Dave R
- Global Moderator
-
- Posts: 9026
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by thomthom » Mon Dec 13, 2010 3:30 pm
Dave R wrote: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 wrote: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.
-

thomthom
- Global Moderator
-
- Posts: 17687
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Dave R » Mon Dec 13, 2010 3:41 pm
Understood. Thank you for this.
Inspecting mirrors is a job I could easily see myself doing.
-

Dave R
- Global Moderator
-
- Posts: 9026
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by Ben Ritter » Mon Dec 13, 2010 5:29 pm
Thank you again TIG.
-
Ben Ritter
-
- Posts: 353
- Joined: Wed Nov 14, 2007 4:55 pm
- Location: Malta, Illinois
Return to Plugins
|