Preview

Master Application

Best Essays
Open Document
Open Document
3782 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Master Application
Intelligent Information Management, 2010, 2, 380-385 doi:10.4236/iim.2010.26046 Published Online June 2010 (http://www.SciRP.org/journal/iim)

The Line Clipping Algorithm Basing on Affine
Transformation
Wenjun Huang
College of Math and Computer Science, Guangxi University for Nationalities, Nanning, China
E-mail: hwjart@126.com
Received March 20, 2010; revised April 25, 2010; accepted May 27, 2010

Abstract
A new algorithm for clipping line segments by a rectangular window on rectangular coordinate system is presented in this paper. The algorithm is very different to the other line clipping algorithms. For the line segments that cannot be identified as completely inside or outside the window by simple testings, this algorithm applies affine transformations (the shearing transformations) to the line segments and the window, and changes the slopes of the line segments and the shape of the window. Thus, it is clear for the line segment to be outside or inside of the window. If the line segments intersect the window, the algorithm immediately (no solving equations) gets the intersection points. Having applied the inverse transformations to the intersection points, the algorithm has the final results. The algorithm is successful to avoid the complex classifications and computations. Besides, the algorithm is effective to simplify the processes of finding the intersection points. Comparing to some classical algorithms, the algorithm of this paper is faster for clipping line segments and more efficient for calculations.
Keywords: Computer Graphics, Line Clipping, Algorithm, Affine Transformation

1. Introduction and Previous Work
In computer graphics, line clipping is a basic and important operation, and has many applications. For example, extracting part of a defined scene for viewing must take line clipping. The region that includes the part of the defined scene is called a clip window. Generally, the window is a rectangle or a general



References: Computers and Graphics, Vol. 18, No. 4, 1994, pp. 517527. Eurographics’92 Conference, Cambridge, 1992, pp. 1-38.

You May Also Find These Documents Helpful

  • Good Essays

    I used the line tool to create a rough floor plan of my living room. However to create the various objects I used the rectangle tool to do this. To identify these objects I used the text tool to label them including where the windows and doors are. To identify these I used the line tool but in a different colour and on a separate layer so there locations are visible.…

    • 1516 Words
    • 7 Pages
    Good Essays
  • Good Essays

    References: © The Authors JCSCR. (2012). A Comparative Study on the Performance. LACSC – Lebanese Association for Computational Sciences Registered under No. 957, 2011, Beirut, Lebanon, 1-12.…

    • 664 Words
    • 4 Pages
    Good Essays
  • Good Essays

    To accomplish the task of line following, the two Line Follower sensors were placed on the two sides of the front of the car. They were used to detect the…

    • 1184 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    LYT2 Task2

    • 4061 Words
    • 12 Pages

    Stein, S. S., Gerding, E. H., Rogers, A. C., Larson, K. K., & Jennings, N. R. (2011). Algorithms…

    • 4061 Words
    • 12 Pages
    Satisfactory Essays
  • Good Essays

    Nanorobot Lab

    • 1604 Words
    • 7 Pages

    Cutting procedure is monitored using the camera and care is taken that it will not cut the surrounding tissue.…

    • 1604 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Gunsmithing Assignment

    • 527 Words
    • 3 Pages

    Mr. Potterfield uses the proper tool for the job he intends to do. He shows that the cutting tool only cuts on the push, and not on the draw. When he nears the border, he switches back to a single cutter. Because he cut the border almost all the way down, it provides a "catch" for the cutting tool. This ensures his lines do not exceed the border. He also showed the hook and pull technique in which he turned to tool around so it cuts on the pull. Near the corners there is little room for error, so he employs a Xacto knife blade to make those fine lines. One thing I found interesting was the cross sectioning of lines in order to make the checkers. We use that in the tattoo industry whenever we are tattooing scales, like on a snake, dragon, or koi fish (except their semi curved). This video was really informative, and reinforced the text for this week's material. I have a fairly good understanding of the checkering process, and look forward to practicing in the near…

    • 527 Words
    • 3 Pages
    Good Essays
  • Good Essays

    and corner points. Lines are invisible or distinctive such as a tree line creek or even a fence that…

    • 592 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Climate and Food of Greece

    • 1170 Words
    • 5 Pages

    Greece has a climate all its own. Greece has fairly warm temperatures all year round and…

    • 1170 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Any time two independent pieces of information are known about a line L it is possible to determine the linear equation whose graph is that line L. The most important fact used in this process is:…

    • 219 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    of line segments. In raster graphics, an image is represented as a two-dimensional array of spots,…

    • 2555 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Lost and Lord of the Flies are two stories about how a plane crash leads to people stranded on a deserted island. In both stories some people died while on the island. In Lost, Mars died. But in Lord of the Flies Simon and Piggy die. In this essay there will be evidence of who was murdered or if it was just an accident. There will also be details to find who was guilty and who was innocent. Under these circumstances, Piggy and Simon were murdered, but Mar’s made his choice to end his life as a request.…

    • 736 Words
    • 3 Pages
    Good Essays
  • Good Essays

    They also discovered a new way to help them start their painting, which was to dividing half the sketch to create the horizon then the horizon was divided in half to find the vanishing point. Two further vertical lines were drawn to create a large square in the centre of the canvas, and diagonals from the centre to the corners of the square were drawn to form the lines of perspective. The large square was then further divided into smaller squares.…

    • 417 Words
    • 2 Pages
    Good Essays
  • Better Essays

    were shown a line­segment, they were then asked to identify among three other line­segments one that…

    • 1114 Words
    • 5 Pages
    Better Essays
  • Good Essays

    The advantage to this method is that the loose lines create a true feeling of life and movement. This is due to the amount of uncapped energy that you can feel looking at the primitive lines. I have thoroughly examined her approach and have applied it to my own work.…

    • 1245 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    3d clipping

    • 2711 Words
    • 11 Pages

    Basically there are two different approaches to clipping. The first and most common is the 2D clipping algorithm. In this kind of algorithm the clipping is done at the last stage of rendering. The triagle-routine used to render the polygons onto the screen make sure that you don't draw outside the screen. This can be very fast, but increases the complexity of the triangle-filler (and it's not as easy as 3D-clipping can be). This clipping method works directly with two-dimensional screen-coordinates.…

    • 2711 Words
    • 11 Pages
    Powerful Essays

Related Topics