from Francisco De La Cruz (xercesblue) The test to use faces was incorrect since mixed vertex and edge mode would be treated as faces. made own minor change.