[SOLVED] How to Get Current Polygon Amount of a Mesh

rhinocommon
mesh
polygoncount

#1

Hello,

the title is pretty self-explaining. I want to write something like this:

Mesh m = new Mesh();
// ...
int amount = m.Polygons.Count;

I know that you can do that with faces and vertices but how about polygons?

Thanks


Edit: I need this for the mesh.Reduce() method. The first parameter is the desiredPolygonAmount, which I want to pass relative to the current one.


(Dale Fugier) #2

Hi @Ivan1,

Basically, Faces = Polygons.

– Dale


#3

Thanks!