Thanks for kindly reply. But I still have some question.
For example, there are 10 points & 20 cells in poly1, and 5 points & 10 cells in poly2. In this way, there should be 15 points & 30 cells in mpoly, which means the merge of poly1 and poly2.
The range of cell id for poly1 should be 0~19, and the range of cell id for poly2 should be 0~9. But, for mpoly, the range of cell id should be 0~29. For a cell with id 25, how to know whether it belong to poly1 or poly2?