PDA

View Full Version : Number of vertices in object ?


dr_bob
06-11-2003, 11:53 AM
Hi ,

OK, guys, a beginner's question - is there a MEL command that returns the number of vertices for an object? I'm trawling through the library, but I haven't found anything yet.


Cheers

Bob

larryvm
06-11-2003, 12:44 PM
the polyEvaluate command can tell you a lot of attrs of a polymesh


int $numberOfVertex=' polyEvaluate -vertex`;

mhovland
06-11-2003, 05:37 PM
Alternatively:

proc int mhNumVerts(string $obj)
{
select -r $obj;
PolySelectConvert 3;
string $selected[] = `ls -sl -fl`;
int $numVerts = size($selected);
return $numVerts;
}

CGTalk Moderation
01-15-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.