Hi, I want to compare two polygons and triangulate the area that is a result of subtracting one polygon area with the other (see "areaResult" below).
Problem 1: To find the resulting area. I have used the Area class and the GeneralPath class from java2D. (I assume that the polygons are in the same z-plane). path1 and path2 are two GeneralPaths. Area area1 = new Area(path1); Area area2 = new Area(path2); Area areaResult = new Area(path2); areaResult.subtract(_area1); where areaResult is the area I want. Problem 2: Triangulate the resulting area. The "areaResult" gives me the coordinates but since the two polygon arrays can be arbitrary shapes I haven't found a triangulation routine that triangulates correctly for all shapes. Does anyone know how to do this? (I want to triangulate using TriangleStripArray) And is there another way there another way to find the "areaResult" in 3D (if my assumption that the polygons are in the same z-plane fails and I can't use 2D coordinates)? Any help appreciated! Best regard, Elisabeth Thorsen =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".