SketchUcation Plugin Store

 

 

[Plugin] Model Info (1.2.0) — 13 Desember 2010

[Plugin] Model Info (1.2.0) — 13 Desember 2010

Postby thomthom » Thu Dec 09, 2010 2:09 pm

Overview
Outputs the model statistics to either console or file.

ModelInfo.png


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.

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.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)

Download


tt_model_info.rb


Footprint
<Sketchup>/Plugins/
+-
tt_model_info.rb

Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby Gaieus » Thu Dec 09, 2010 2:17 pm

Nifty! :thumb:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27725
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

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby 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.
User avatar
solo
Global Moderator
 
Posts: 10838
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby thomthom » Thu Dec 09, 2010 2:38 pm

You mean triangles?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby Rich O Brien » Thu Dec 09, 2010 2:53 pm

Doesn't Fredo have this?

viewtopic.php?t=30976
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8418
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

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby 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.
User avatar
solo
Global Moderator
 
Posts: 10838
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby 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...
User avatar
Gaieus
Administrator
 
Posts: 27725
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

Re: [Plugin] Model Info (1.0.0) — 09 Desember 2010

Postby 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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.1.0) — 09 Desember 2010

Postby 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.)
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby glro » Thu Dec 09, 2010 4:47 pm

thomthom wrote:Overview
Outputs 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: 135
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

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby 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"?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby 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: 135
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

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby thomthom » Thu Dec 09, 2010 9:40 pm

Oooh... I never noticed that option before! :shock:
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby glro » Thu Dec 09, 2010 10:03 pm

thomthom wrote:Oooh... I never noticed that option before! :shock:


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: 135
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

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby 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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.1.1) — 09 Desember 2010

Postby thomthom » Mon Dec 13, 2010 1:19 pm

glro wrote:
thomthom wrote:Oooh... I never noticed that option before! :shock:


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
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.2.0) — 13 Desember 2010

Postby 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.
User avatar
Dave R
Global Moderator
 
Posts: 9238
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

Re: [Plugin] Model Info (1.2.0) — 13 Desember 2010

Postby 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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17907
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: Thomas Thomassen
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Model Info (1.2.0) — 13 Desember 2010

Postby 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.
User avatar
Dave R
Global Moderator
 
Posts: 9238
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

Re: [Plugin] Model Info (1.2.0) — 13 Desember 2010

Postby Ben Ritter » Mon Dec 13, 2010 5:29 pm

Thank you again TIG.
Ben Ritter
 
Posts: 356
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: Flippie123, tyoung2766, utiler and 15 guests