How many polygons do I have in the file?

Hi,
I exported my model and it showed the text underneath,
I think I have a lot of polygons, is there another way to know before exporting how many polygons do I have, a command or somethgin? I checked into analyze but didnt find something like thath,
any idea?
thanks :smiley:

Mesh object is too large for 3DS file format.
65742 points and 21914 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Mesh object is too large for 3DS file format.
83868 points and 27956 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Mesh object is too large for 3DS file format.
1237144 points and 599888 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Polygons have been added to convert quads to triangles.
Mesh object is too large for 3DS file format.
181532 points and 75928 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Polygons have been added to convert quads to triangles.
Mesh object is too large for 3DS file format.
68116 points and 28016 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Polygons have been added to convert quads to triangles.
Mesh object is too large for 3DS file format.
66488 points and 23188 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Polygons have been added to convert quads to triangles.
Mesh object is too large for 3DS file format.
117228 points and 46156 polygons - maximum is 65535 for 3DS format.
So Rhino will split the mesh into parts
Polygons have been added to convert quads to triangles.

Hi Flo, you can select a bunch of meshes and nurbs objects then enter

_PolygonCount

Without a selection it can count all polygons in your scene (Including the polygons built by rendermeshes). This information is also found in the _Properties dialog, by clicking on the “Details” button. Or use _What command to trigger the same dialog.

You might want to consider OBJ instead of 3DS. It would get rid of the maximum polygon limit.

c.

mmh… oups, Rhino crashes every time I launch the “polygon count” command… :-/
Is there any way to read the text coming during the export command?
Did you see in the text I copied on top? it shows even one time "1237144 points and 599888 polygons - maximum is 65535 for 3DS format. "
it is almost 600 000 polygons! is it possible? I do have a lot of stuff there but…

Hi Flo,

are you on Rhino4 ? The _PolygonCount command is a Rhino5 command. For a single mesh or nurbs object with rendermeshes, you can see the amount of polygons by using the _What command in Rhino4.

Btw. are you exporting Mesh objects or do you have Nurbs objects ?

c.

Below is a script to count polygons in Rhino 4 for mesh objects. Save it somewhere on your hdd, then drop it into your Rhino window to register a new command “PolyCount”. You can run this command before doing the export.

PolyCount.rvb (Rhino4)

greetings,
c.

Hi Clement,
I have both Nurbs and Meshes but more Mesh than Nurbs in qty I guess,
I tried the “what” command, it worked but it lists only the polygons qty for each object,
unfortunately not for the whole scene :-/
greetings
Flo

The script is great! it worked very quick!
result:
Selection PolyCount: 914435 (455000 quads, 459435 triangles)
oups, no wonder that my computer is on its knee! :wink:

Depening on you hardware, this can be much. I’ve just updated the script above so it counts polygons from nurbs rendermeshes and analysismeshes too. It doesn`t include Blocks though. Please click on the link above again, it might be necessary to refresh the page with F5.

If you have nurbs objects in your scene, you can try _ClearAllMeshes then use the mesh settings under DocumentProperties / Mesh to adjust the density globally.

c.

Hi Clement,
I wanted to try the new script but my Rhino is not starting anymore, I started the PC new but still it doesnt start.
It is like this: when I check the task manager, it is there, but doesnt go over 13 Mb of RAM use, I have also no pop up window telling me about any problem…
Could it be related with the script? this is the last thing I did last time I opened Rhino.
Nice Regards,

Hi flo, no i don`t think a script could do that. You can delete the script file to make shure it is not related. Also, try to start Rhino in save mode after a reboot.

c.

I dont find the file in Programm Files/rhinoceros/plugins, I searched for “polycount”

in safe mode it worked! :slight_smile:

maybe you`ve saved it in a temp folder and did run it from there ? If you cannot find it grab it above in this thread. Personally i do store all my scripts in a folder and use the _-LoadScript command to run them. The folder location is remembered if you add a new file searchpath under Rhino Options / Files / Search Paths.

Did you install any plugins in the past ?

c.

I could use the pluging (in safe mode):
result PolyCount: 982855 polygons

but now, I moved the script file in another folder and now Rhino starts good, that’s practical, I can still use script when I need it but then I have to move it somewhere else otherwise Rhino refuses to start :smile:

It doesn’t look like a critical value for a standard computer. At Rhino 4 at a few millions (3…4) it could be a problem, but less than one million … . Also it’s a gain if you have meshes instead nurbs objects in your scene, since NURBS objects hold the nurbs + the render mesh data in RAM.

1 Like

Your have a general problem with the 3DS format. Like the info sayed 3DS is very limited, the low polygon count of 65535 is the limit. Use OBJ instead, it’s the better choice. Also FBX can be good, it’s quite universal.

thats odd! If your Rhino4 crashes on startup but not in savemode, then there is likely a plugin which is causing this and this specific plugin does not get loaded in save mode. Plugins have the extension *.rhp while scripts (the file above is one) usually have the extension *.rvb or *.py. So this should have nothing to do with a script. During startup Rhino does not know about this script nor does it check if the path to the script loaded within a command alias is valid. In order to make the script do anything, it needs a selection of objects. Something which does not happen automatically during startup.

Please open Rhino4 in savemode, under Rhino Options / Aliases there is a list of command aliases, search in this list for the entry “PolyCount”. Then tell us the exact path of the command macro this alias uses. Is the script located at this path ?

If the alias is there, please highlight it, then click on the delete button to remove it. Close and open Rhino (in regular mode). Does it start then ?

If it does just drag and drop the scriptfile over Rhino to start the PolyCount command. Note that this doesn`t add any alias named “PolyCount”. It will just run the script which is linked above.

c.

I once made an experiment and exported the same scene as: .obj, .3ds and .dwg
the obj was at least 4x bigger file, that’s why I decided for 3ds (dwg didnt worked really, some objects didnt got opened in 3ds and all the textures and colours were not there…but that can also be because of 3ds, I dont know that software very wel)

Hi Clement,
I removed the polycount from its place, it is every thing ok now but I have a look…
so in the aliases, I found polycout: I dont find a path there but I can read a commad on the right:
_NoEcho _-Runscript (PolyCount),
I deleted it, Rhino starts normally,
thanks for the explanation :sunny:

I suppose so your 3ds version wasn’t complete exported or maybe it create smaller files, because some infos are not saved to the file or an other mesh description is used. I use OBJ always, no problems yet.