merge_p3dfunc