Skip to content

pya.Box.touches? #41

@lukasc-ubc

Description

@lukasc-ubc

Hi Matthias,

for class Box, http://www.klayout.de/doc-qt4/code/class_Box.html

  • Description: Test if this box touches the argument box. Returns true, if this box has at least one point common with the argument box

I would instead define "touches" as there being at least one coincident edge. e.g., you can have a small box touching a big box, but the points aren't common (if you define a point as a vertex / corner).

What I am really looking for is a test for overlapping & touching, for both Box and Polygon.

And as far as I can tell, Box.touches actually gives the result I desire (fortunately), but doesn't match the description.

For class Polygon, there is no overlap test, yet internally you must have one since you have shape iterators? (this is not critical for me... I have a work-around now)

Thank you very much,
Lukas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions