The shape and structure of carton and its modeling mechanism suitable for automatic and mechanized production was analyzed based on the condition of automatic production.Based on the metamorphic mechanisms,one typical folding carton was analyzed.Through the study of the change from a configuration to another,the folding process was presented with a hereditary connectivity matrix.This matrix can be used to design the motion track of the automatic folding mechanism for complex carton.