comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Area intersection of two trapezoids with given coordinates
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Area intersection of two trapezoids with given coordinates [message #56856 is a reply to message #56787] Sun, 18 November 2007 19:27 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mrosimmel@gmail.com writes:

> I was wondering if there is a function in IDL that I can find the
> intersection area of two trapezoids with given corner coordinates.
> Briefly I have two trapezoids where the first one has corners of
> (x1,y1), (x2,y2), (x3,y3), (x4,y4) and the second one has corners of
> (a1,b1), (a2,b2), (a3,b3), (a4,b4)...I know ARCGIS has such functions
> (like union/intersection).. If not could anyone have an idea how can I
> do it in IDL?

If these trapezoids have to do, for example, with
images, you can use POLYFILLV to get a list of
all the vertices inside them. Then you can perform
set operations on the vertices:

http://www.dfanning.com/tips/set_operations.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: machine learning
Next Topic: logarithmic axis lables

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 12:17:38 PDT 2025

Total time taken to generate the page: 1.11802 seconds