skip to main content
article
Free Access

An efficient algorithm for finding the CSG representation of a simple polygon

Published:01 June 1988Publication History
Skip Abstract Section

Abstract

We consider the problem of converting boundary representations of polyhedral objects into constructive-solid-geometry (CSG) representations. The CSG representations for a polyhedron P are based on the half-spaces supporting the faces of P. For certain kinds of polyhedra this problem is equivalent to the corresponding problem for simple polygons in the plane. We give a new proof that the interior of each simple polygon can be represented by a monotone boolean formula based on the half-planes supporting the sides of the polygon and using each such half-plane only once. Our main contribution is an efficient and practical O(n log n) algorithm for doing this boundary-to-CSG conversion for a simple polygon of n sides. We also prove that such nice formulæ do not always exist for general polyhedra in three dimensions.

References

  1. 1 J. Boyse and J. Gilchrist. GMSolid: interactive modeling for design and analysis of solids. IEEE Computer Graphics and Applications, 2:86-97, 1982.Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 C. Brown. PADL-2: a technical summary. IEEE Computer Graphics and Applications, 2:69-84, 1982.Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 B. M. Chazelle. Computational Geometry and Convexity. Technical Report CMU-CS-80-150, Carnegie-Mellon University, Department of Computer Science, Pittsburgh, PA, 1980.Google ScholarGoogle Scholar
  4. 4 H. Edelsbrunner. Algorithms in Combinatorial Geometry. Volume 10 of EATCS Monographs on Theoretical Computer Science, Springer-Verlag, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5 W. Franklin. Polygon properties calculated from the vertex neighborhoods. In Proceedings of the 3rd ACM Symposium on Computational Geometry, pages 110-118, ACM, June 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6 R. L. Graham and F. F. Yao. Finding the convex hull of a simple polygon. Journal of Algorithms, 4:324-331, 1983.Google ScholarGoogle ScholarCross RefCross Ref
  7. 7 L. Guibas, J. Hershberger, D. Leven, M. Sharir, and R. Tarjan. Linear time algorithms for visibility and shortest path problems inside triangulated simple polygons. Algorithmica, 2:209-233, 1987.Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 L. Guibas, L. Ramshaw, and J. Stolfi. A kinetic framework for computational geometry. In Proceedings of the 24 th Annual IEEE Symposium on Foundations of Computer Science, pages 100-111, IEEE, 1983.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9 K. Hoffmann, K. Mehlhorn, P. Rosenstiehl, and R. E. Tarjan. Sorting Jordan sequences in linear time. In Proceedings of the ACM Symposium on Computational Geometry, pages 196-203, ACM, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10 D. T. Lee. On finding the convex hull of a simple polygon.Google ScholarGoogle Scholar
  11. 11 M. M. Mano. Digital Logic and Computer Design. Prentice- Hall, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12 M. Mantyla. An Introduction to Solid Modeling. Computer Science Press, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13 D. McCallum and D. Avis. A linear algorithm for finding the convex hull of a simple polygon. Information Processing Letters, 9:201-206, 1979.Google ScholarGoogle ScholarCross RefCross Ref
  14. 14 A. Melkman. On-line construction of the convex hull of a simple polyline. Information Processing Letters, 25:11-12, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. 15 M. Mortenson. Geometric Modeling. John Wiley & Sons, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. 16 R. Newell. Solid modelling and parametric design in the Medusa system. In Computer Graphics '82, Proceedings of the Online Conference, pages 223-235, 1982.Google ScholarGoogle Scholar
  17. 17 J. O'Rourke. Art Gallery Theorems and Algorithms. Oxford University Press, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. 18 T. Pavlidis. Analysis of set patterns. Pattern Recognition, 1:165-178, 1968.Google ScholarGoogle ScholarCross RefCross Ref
  19. 19 D. Peterson. Hal fspace Representation of Extrusions, Solids of Revolution, and Pyramids. SANDIA Report SAND84- 0572, Sandia National Laboratories, 1984.Google ScholarGoogle Scholar
  20. 20 F. P. Preparata and M. I. Shamos. Computational Geometry. Springer Verlag, New York, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. 21 A. Requicha. Representations for rigid solids: theory, methods, and systems. ACM Computing Surveys, 12:437-464, 1980. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22 A. A. Sch~ffer and C. J. Van Wyk. Convex hulls of piecewisesmooth Jordan curves. Journal of Algorithms, 8:66-94, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. 23 W. Tiller. Rational B-splines for curve and surface representation. IEEE Computer Graphics and Applications, 3, 1983.Google ScholarGoogle Scholar
  24. 24 S. B. Tor and A. E. Middleditch. Convex decomposition of simple polygons. ACM Transactions on Graphics, 3(4):244- 265, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. 25 H. Voelcker, A. Requicha, E. Hartquist, W. Fisher, J. Metzger, R. Tilove, N. Birrell, W. Hunt, G. Armstrong, T. Check, R. Moote, and J. McSweeney. The PADL-1.0/2 system for defining and displaying solid objects. ACM Comput. Gr., 12(3):257-263, 1978. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. 26 J. R. Woodwark and A. F. Wallis. Graphical input to a Boolean solid modeller. In CAD 82, pages 681-688, Brighton, U.K., 1982.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. An efficient algorithm for finding the CSG representation of a simple polygon

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM SIGGRAPH Computer Graphics
        ACM SIGGRAPH Computer Graphics  Volume 22, Issue 4
        Aug. 1988
        330 pages
        ISSN:0097-8930
        DOI:10.1145/378456
        Issue’s Table of Contents
        • cover image ACM Conferences
          SIGGRAPH '88: Proceedings of the 15th annual conference on Computer graphics and interactive techniques
          August 1988
          356 pages
          ISBN:0897912756
          DOI:10.1145/54852

        Copyright © 1988 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 June 1988

        Check for updates

        Qualifiers

        • article

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader