I rather keep it the way it it. 
The smesh file only specifies that each facet is defined by one polygon. This polygon need not have 3 points but could have any number of points. So the perfect solution would be to read an arbitrary polygon and then triangulate is myself, but for now I just use the check before (line 242) where I make sure that nPoints is actually 3.