Given: Two 2D polygons (shapes) in the same plane
I need a routine to return the coordinates of the new polygon which is the result of the two intersecting
Does anyone know or have source to solve this problem?
Once I have the resulting intersecting polygon,
I can use it's coordinates to determine the centroid of it's area which is the center of force transfer for two members glued together which have different geometric shapes or at different angles at the member connection points.
Not exactly what you're looking for, but do a search for the comp.graphics.algorithms faq. This doc has lots of algorithms for computing things like this. Including some ideas for intersecting two polygons, calculating the intersection point of line segments and calculating centroids. Invaluable resource.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.