Abstract:The tracing method is applied to generate the contour graph, it is difficult to find the start point of the interior closed contour beam. This paper presents a general scanning beam method which can be applied to generate color contour graph for elements with arbitrary shape by the object-oriented programming. We give visualization of the elements of triangle the element with 3 Points, triangle element with 6 Points, quadrilateral element with 4 Points, quadrilateral element with 8 Points, quadrilateral Element with 9 Points and the example by the MFC of Visual C++ R6.