Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!ukc!ox-prg!wen From: wen@robots.ox.ac.uk (Wu Wen) Newsgroups: comp.windows.x Subject: manipulating regions in X Message-ID: <1712@culhua.prg.ox.ac.uk> Date: 13 May 91 09:29:59 GMT Sender: news@prg.ox.ac.uk Organization: Robotics Research Group, Engineering Science Dept, Oxford, UK. Lines: 10 Originator: wen@duncan.robots i am using regions to do simple 2-d geometric calculations and here is the problem: i create an arry of regions world_region[i] use XPolygonRegion(), XPointInRegion() works with world_region[i], but when i use XIntersectRegion() it complains the type of world_region[i]. if i declare Region world_region instead of Region world_region[10], it wont complain. can someone tell me why? and also how to make a copy of a region? thanks.