Skip to main content

Smooth Linear Approximation of Non-overlap Constraints

  • Conference paper
Diagrammatic Representation and Inference (Diagrams 2008)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 5223))

Included in the following conference series:

Abstract

Constraint-based placement tools and their use in diagramming tools has been investigated for decades. One of the most important and natural placement constraints in diagrams is that their graphic elements do not overlap. However, non-overlap of objects, especially non-convex objects, is difficult to solve and, in particular, to solve sufficiently rapidly for direct manipulation. Here we present the first practical approach for solving non-overlap of possibly non-convex objects in conjunction with other placement constraints such as alignment and distribution. Our methods are based on approximating the non-overlap constraint by a smoothly changing linear approximation. We have found that this in combination with techniques for lazy addition of constraints, is rapid enough to support direct manipulation in reasonably sized diagrams.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Badros, G.J., Borning, A., Stuckey, P.J.: The Cassowary linear arithmetic constraint solving algorithm. ACM Trans. CHI. 8(4), 267–306 (2001)

    Google Scholar 

  2. Baraff, D.: Fast contact force computation for nonpenetrating rigid bodies. In: Proceedings of the 21st Annual Conference on Computer Graphics and Interactive Techniques, pp. 23–34 (1994)

    Google Scholar 

  3. Borning, A., Marriott, K., Stuckey, P., Xiao, Y.: Solving linear arithmetic constraints for user interface applications. In: Proceedings of the 10th Annual ACM Symposium on User Interface Software and Technology, pp. 87–96. ACM Press, New York (1997)

    Chapter  Google Scholar 

  4. Chazelle, B.: Triangulating a simple polygon in linear time. Discrete and Computational Geometry 6(1), 485–524 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  5. Chiang, Y., Tamassia, R.: Dynamic algorithms in computational geometry. Proceedings of the IEEE 80(9), 1412–1434 (1992)

    Article  Google Scholar 

  6. Flato, E.: Robust and efficient construction of planar Minkowski sums. Master’s thesis, School of Computer Science, Tel-Aviv University (2000)

    Google Scholar 

  7. Fletcher, R.: Practical methods of optimization. Wiley-Interscience, New York (1987)

    MATH  Google Scholar 

  8. Ghosh, P.K.: A solution of polygon containment, spatial planning, and other related problems using minkowski operations. Comput. Vision Graph. Image Process. 49(1), 1–35 (1990)

    Article  Google Scholar 

  9. Greene, D.H.: The decomposition of polygons into convex parts. In: Computational Geometry, pp. 235–259 (1983)

    Google Scholar 

  10. Harada, M., Witkin, A., Baraff, D.: Interactive physically-based manipulation of discrete/continuous models. In: Proceedings of the 22nd Annual Conference on Computer Graphics and Interactive Techniques, pp. 199–208 (1995)

    Google Scholar 

  11. Hosobe, H.: A modular geometric constraint solver for user interface applications. In: Proceedings of the 14th annual ACM symposium on User Interface Software and Technology, pp. 91–100 (2001)

    Google Scholar 

  12. Hurst, N., Marriott, K., Moulder, P.: Dynamic approximation of complex graphical constraints by linear constraints. In: Proceedings of the 15th annual ACM symposium on User Interface Software and Technology, pp. 27–30 (2002)

    Google Scholar 

  13. Kramer, G.A.: A geometric constraint engine. Artificial Intelligence 58(1-3), 327–360 (1992)

    Article  MathSciNet  Google Scholar 

  14. Lin, M., Manocha, D., Cohen, J.: Collision detection: Algorithms and applications (1996)

    Google Scholar 

  15. Marriott, K., Chok, S.C., Finlay, A.: A tableau based constraint solving toolkit for interactive graphical applications. In: Proceedings of the 4th International Conference on Principles and Practice of Constraint Programming, London, UK, pp. 340–354. Springer, London (1998)

    Google Scholar 

  16. Marriott, K., Moulder, P., Stuckey, P.J., Borning, A.: Solving disjunctive constraints for interactive graphical applications. In: Proceedings of the 7th International Conference on Principles and Practice of Constraint Programming, London, UK, pp. 361–376. Springer, Heidelberg (2001)

    Google Scholar 

  17. Nelson, G.: Juno, a constraint-based graphics system. In: Proceedings of the 12th annual conference on Computer Graphics and Interactive Techniques, pp. 235–243. ACM Press, New York (1985)

    Chapter  Google Scholar 

  18. O’Rourke, J.: Computational Geometry in C, 2nd edn. (1998)

    Google Scholar 

  19. Ramkumar, G.D.: An algorithm to compute the Minkowski sum outer-face of two simple polygons. In: Proceedings of the Twelfth Annual Symposium on Computational geometry, pp. 234–241 (1996)

    Google Scholar 

  20. Samet, H.: The Design and Analysis of Spatial Data Structures (1990)

    Google Scholar 

  21. Seidel, R.: A simple and fast incremental randomized algorithm for computing trapezoidal decompositions and for triangulating polygons. Comput. Geom. Theory Appl. 1(1), 51–64 (1991)

    MATH  MathSciNet  Google Scholar 

  22. Sutherland, I.E.: Sketch pad a man-machine graphical communication system. In: DAC 1964: Proceedings of the SHARE design automation workshop, pp. 6.329–6.346. ACM Press, New York (1964)

    Google Scholar 

  23. Vander Zanden, B.: An incremental algorithm for satisfying hierarchies of multiway dataflow constraints. ACM Transactions on Programming Languages and Systems (TOPLAS) 18(1), 30–72 (1996)

    Article  Google Scholar 

  24. Wein, R.: Exact and efficient construction of planar Minkowski sums using the convolution method. In: Proceedings of the 14th Annual European Symposium on Algorithms, September 2006, pp. 829–840 (2006)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Gem Stapleton John Howse John Lee

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Gange, G., Marriott, K., Stuckey, P.J. (2008). Smooth Linear Approximation of Non-overlap Constraints. In: Stapleton, G., Howse, J., Lee, J. (eds) Diagrammatic Representation and Inference. Diagrams 2008. Lecture Notes in Computer Science(), vol 5223. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-87730-1_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-87730-1_8

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-87729-5

  • Online ISBN: 978-3-540-87730-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics