The invention discloses a two-dimensional special-shaped boxing, typesetting and nesting
system and method. According to the
system and method, typesetting and nesting based on special-shaped components and special-shaped raw plates are achieved. The method comprises the following steps: reading and analyzing a graphic coordinate series (including straight lines, arcs, circles, component numbers and the like) of each component from a dxf file of the component; reading and analyzing a graph coordinate series (including a closed graph formed by a straight line, an arc and the like) of the original board from a dxf file of the original board; obtaining the minimum wrapping rectangle of each component, and firstly realizing two-dimensional boxing and typesetting based on the minimum wrapping rectangle of each component in the closed graph outline of the original plate;
cutting and combining the special-shaped raw plate areas to realize boxing and typesetting based on the special-shaped raw plates; further realizing sleeving of the graphic coordinates of each component into the
minimum bounding rectangle of the component which is typeset in the previous step through graphic operation such as movement and rotation, and realizing typesetting and sleeving based on the special-shaped component; all results of typesetting and nesting can be exported as a dxf file and can also be exported as a
G code file for automatic
cutting machining of a
numerical control lathe; a whole set of processes including two-dimensional special-shaped boxing, typesetting and nesting
algorithm development, dll packaging, webservice interface development and release, web end calling, web version application
system development, desktop end calling, desktop version application
system development and the like are realized.