An algorithm for outline resolution on 2D complicated PCB circuit and irregu-lar pattern is presented.Its mathematic model,algorithm description and implementation are described as well as correctness proof and complexity analysis of the algorithm.The sample results on a PC386—based CAD/CAM system(CACAO)are also demonstrated.