Function GenericMesh.validate

Throw an exception if mesh contains invalid indices

void validate();