ACM SIGGRAPH Computer Graphics · 1987 · 52 citations · 3 references
ComputingComputer EngineeringComputer ScienceAlgorithmsComputational GeometryGeometryGeometric OptimizationGeometry ProcessingIntersection DetectionLine Segment IntersectionClippingGeometric Intersection ComputationIntersectionIntersection PreprocessingProgram TransformationSegment-intersection AlgorithmsSymmetry ExtractionTransformations
This paper describes a new alorithm for clipping a line in two dimensions against a rectangular window. This algorithm avoids computation of intersection points which are not endpoints of the output line segment. The performance of this algorithm is shown to be consistently better than existing algorithms, including the Cohen-Sutherland and Liang-Barsky algorithms. This performance comparison is machine-independent, based on an analysis of the number of arithmetic operations and comparisons required by the different algorithms. We first present the algorithm using procedures which perform geometric transformations to exploit symmetry properties and then show how program transformation techniques may be used to eliminate the extra statements involved in performing geometric transformations.
3
A New Concept and Method for Line Clipping
You-Dong Liang, Brian A. Barsky · ACM Transactions on Graphics · 1984 · 173 citations
Robert F. Sproull, Ivan E. Sutherland · 1968 · 88 citations · Full text