polyop.getVertsByMatId <Poly poly> <int material_id>
Returns an array of vertices that belong to faces that match the specified material_id for the specified poly.
polyop.getFacesByMatId <Poly poly> <int material_id>
Returns an array of faces that match the specified material_id for the specified poly.