EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

center point of overlapping bounding boxes

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - center point of overlapping bounding boxes

PolyPusher
Guest

Tue Oct 11, 2011 3:36 pm   



Hi,

Given to bBoxes that intersect I want to find the center point of the
two. Where do I start?

Thank you,
Eric

Andrew Beckett
Guest

Fri Nov 11, 2011 3:07 pm   



PolyPusher wrote, on 10/11/11 14:36:
Quote:
Hi,

Given to bBoxes that intersect I want to find the center point of the
two. Where do I start?

Thank you,
Eric

Eric

procedure(abMultiBoxCenter(@rest boxes)
centerBox(
list(apply('mapcar 'min mapcar('lowerLeft boxes))
apply('mapcar 'max mapcar('upperRight boxes))
)
)
)

You can then do:

abMultiBoxCenter(bBox1 bBox2)

(or indeed abMultiBoxCenter(bBox1 bBox2 bBox3 bBox4...) if you wanted).

Andrew.

elektroda.net NewsGroups Forum Index - Cadence - center point of overlapping bounding boxes

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony